]> Pileus Git - ~andy/gtk/commitdiff
Plug a mem leak. Bug #506096.
authorChristian Persch <chpe@gnome.org>
Fri, 28 Dec 2007 19:18:55 +0000 (19:18 +0000)
committerChristian Persch <chpe@src.gnome.org>
Fri, 28 Dec 2007 19:18:55 +0000 (19:18 +0000)
2007-12-28  Christian Persch  <chpe@gnome.org>

* gtk/gtkfontsel.c: (gtk_font_selection_get_property): Plug
a mem leak. Bug #506096.

svn path=/trunk/; revision=19279

ChangeLog
gtk/gtkfontsel.c

index dbe7994a32aab0dedf44dffb0e33ee30ef30ff6a..a66f960b58c2dc727a321a5a0c3d8169e0750f72 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-28  Christian Persch  <chpe@gnome.org>
+
+       * gtk/gtkfontsel.c: (gtk_font_selection_get_property): Plug
+       a mem leak. Bug #506096.
+
 2007-12-28  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkprintoperation.c:
index ddf0ba6cd8f2359abf9925e52d29b216032e9e24..5c795c53aeb4bd7eb2eb76ec57a2a3e05099c072 100644 (file)
@@ -235,7 +235,7 @@ static void gtk_font_selection_get_property (GObject         *object,
   switch (prop_id)
     {
     case PROP_FONT_NAME:
-      g_value_set_string (value, gtk_font_selection_get_font_name (fontsel));
+      g_value_take_string (value, gtk_font_selection_get_font_name (fontsel));
       break;
     case PROP_FONT:
       g_value_set_boxed (value, gtk_font_selection_get_font_internal (fontsel));