]> git.sur5r.net Git - glabels/commitdiff
2009-09-17 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Fri, 18 Sep 2009 01:54:44 +0000 (01:54 +0000)
committerJim Evins <evins@snaught.com>
Fri, 18 Sep 2009 01:54:44 +0000 (01:54 +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/trunk@886 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/ChangeLog
glabels2/src/stock.c

index 9f98bed0efb32c594dc37d87aeab4f32426db82a..d5f0f18c7b7a38e53f50ac838d7c4e7787ada8fc 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-17  Jim Evins  <evins@snaught.com>
 
        * libglabels/category.h:
index 311be4b5f9ee014ba71045fc2a610f18bd994915..7f312109d29099670b3cabb0957007b9676dfe8c 100644 (file)
@@ -176,7 +176,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);