From b976323b04593bf2f642d8bdf36b39a346d840dc Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Tue, 21 Mar 2006 09:24:47 +0000 Subject: [PATCH] Use wxGtkString here too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/colordlg.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gtk/colordlg.cpp b/src/gtk/colordlg.cpp index 8571dab73e..4c14ef5dfc 100644 --- a/src/gtk/colordlg.cpp +++ b/src/gtk/colordlg.cpp @@ -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()