]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxGtkString here too
authorMart Raudsepp <leio@gentoo.org>
Tue, 21 Mar 2006 09:24:47 +0000 (09:24 +0000)
committerMart Raudsepp <leio@gentoo.org>
Tue, 21 Mar 2006 09:24:47 +0000 (09:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/colordlg.cpp

index 8571dab73e1a1cb73031682d106ce01dfb90fa13..4c14ef5dfc89832dfdda9ba78d6fd77022f0ab78 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);
 }
 
 void wxColourDialog::DialogToColourData()