]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/colordlg.cpp
Corrected some wxMac images
[wxWidgets.git] / src / gtk / colordlg.cpp
index 07623444a34f1fef6e45c1dd5c03516f4be83ebf..8300d82f83d1813fdc2096f8828b4a83110fca41 100644 (file)
@@ -53,6 +53,8 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data)
     m_widget = gtk_color_selection_dialog_new(wxGTK_CONV(title));
 #endif // wxUSE_LIBHILDON/!wxUSE_LIBHILDON
 
+    g_object_ref(m_widget);
+
     if ( parentGTK )
     {
         gtk_window_set_transient_for(GTK_WINDOW(m_widget), parentGTK);