]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/colordlg.cpp
Fix memory leak when a spacer is added, and crash when a window is added before wxSiz...
[wxWidgets.git] / src / gtk1 / colordlg.cpp
index fa41faa4f84acfe9220ca6eb7b2c5f595356771a..9e676a6fa8d5ae18c28dc63b73efa5cf91568704 100644 (file)
@@ -61,7 +61,8 @@ int wxColourDialog::ShowModal()
     ColourDataToDialog();
     
     gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
-   
+    gtk_widget_hide(m_widget);
+    
     switch (result)
     {
         default: