]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/msgdlg.cpp
Avoid error message when closing message
[wxWidgets.git] / src / gtk1 / msgdlg.cpp
index 4ee201a9f2a498295bcc12150d554d09392c0878..66a4b47b666dce093b9583f993bdd2b16b23fa57 100644 (file)
@@ -95,6 +95,11 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
                                      GTK_WINDOW(m_parent->m_widget));
 }
  
+wxMessageDialog::~wxMessageDialog()
+{
+    m_widget = NULL;
+}
+
 int wxMessageDialog::ShowModal()
 {
     gint result = gtk_dialog_run(GTK_DIALOG(m_widget));