From: Jim Evins Date: Fri, 18 Sep 2009 01:58:24 +0000 (+0000) Subject: 2009-09-17 Jim Evins X-Git-Tag: glabels-2_2_6~20^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d3a72579798314c893e9dd7b9c1dc0927f0a89f6;p=glabels 2009-09-17 Jim Evins * 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 . git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/branches/glabels-2_2@887 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- diff --git a/glabels2/ChangeLog b/glabels2/ChangeLog index dd6f036a..9c266543 100644 --- a/glabels2/ChangeLog +++ b/glabels2/ChangeLog @@ -1,3 +1,9 @@ +2009-09-17 Jim Evins + + * 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 . + 2009-09-09 Jim Evins * configure.in: diff --git a/glabels2/src/stock.c b/glabels2/src/stock.c index 72f1c25c..a733e5c7 100644 --- a/glabels2/src/stock.c +++ b/glabels2/src/stock.c @@ -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);