]> git.sur5r.net Git - glabels/commitdiff
2009-09-17 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Fri, 18 Sep 2009 01:58:24 +0000 (01:58 +0000)
committerJim Evins <evins@snaught.com>
Fri, 18 Sep 2009 01:58:24 +0000 (01:58 +0000)
* src/stock.c: (add_icons), (add_button_icon):
Use proper free function for GtkIconSource (gtk_icon_source_free() not g_free()).
Patch provided by Christian Persch <chpe@gnome.org>.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/branches/glabels-2_2@887 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/ChangeLog
glabels2/src/stock.c

index dd6f036aea00f54f581b0bfb4d7a350382090367..9c266543cb917a12d00847cb850a400e4066ec50 100644 (file)
@@ -1,3 +1,9 @@
+2009-09-17  Jim Evins  <evins@snaught.com>
+
+       * src/stock.c: (add_icons), (add_button_icon):
+               Use proper free function for GtkIconSource (gtk_icon_source_free() not g_free()).
+               Patch provided by Christian Persch <chpe@gnome.org>.
+
 2009-09-09  Jim Evins  <evins@snaught.com>
 
        * configure.in:
index 72f1c25c7e08b59452dcc75a0aa97092af1fcd37..a733e5c757b21624b544526c89243786593a848b 100644 (file)
@@ -177,7 +177,7 @@ add_icons (GtkIconFactory *factory,
                gtk_icon_source_set_size_wildcarded (icon_source, FALSE);
                gtk_icon_source_set_size (icon_source, GTK_ICON_SIZE_MENU);
                gtk_icon_set_add_source (icon_set, icon_source);
-               g_free (icon_source);
+               gtk_icon_source_free (icon_source);
        }
 
        /* Now associate icon set with stock id */
@@ -206,7 +206,7 @@ add_button_icon (GtkIconFactory *factory,
        gtk_icon_source_set_size_wildcarded (icon_source, FALSE);
        gtk_icon_source_set_size (icon_source, GTK_ICON_SIZE_BUTTON);
        gtk_icon_set_add_source (icon_set, icon_source);
-       g_free (icon_source);
+       gtk_icon_source_free (icon_source);
 
        /* Now associate icon set with stock id */
        gtk_icon_factory_add (factory, stock_id, icon_set);