]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/colordlg.cpp
GetBestFittingSize --> GetEffectiveMinSize
[wxWidgets.git] / src / gtk / colordlg.cpp
index 8571dab73e1a1cb73031682d106ce01dfb90fa13..b264c991ca40c771829732df3237df87655210cc 100644 (file)
@@ -104,12 +104,10 @@ void wxColourDialog::ColourDataToDialog()
         }
     }
 
-    gchar *pal = gtk_color_selection_palette_to_string(colors, n_colors);
+    wxGtkString pal(gtk_color_selection_palette_to_string(colors, n_colors));
 
     GtkSettings *settings = gtk_widget_get_settings(GTK_WIDGET(sel));
-    g_object_set(settings, "gtk-color-palette", pal, NULL);
-
-    g_free(pal);
+    g_object_set(settings, "gtk-color-palette", pal.c_str(), NULL);
 }
 
 void wxColourDialog::DialogToColourData()