X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c7f73af494dcebd162d5130a90738288719fa590..f1dec25f3133c76bf4d2b8b8e0985175f52ac0f5:/src/gtk1/msgdlg.cpp diff --git a/src/gtk1/msgdlg.cpp b/src/gtk1/msgdlg.cpp index 4ee201a9f2..66a4b47b66 100644 --- a/src/gtk1/msgdlg.cpp +++ b/src/gtk1/msgdlg.cpp @@ -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));