From 25a36cf2b7d91c7578d40b141b6810e5f635b629 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Fri, 18 Sep 2009 01:54:44 +0000 Subject: [PATCH] 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/trunk@886 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- glabels2/ChangeLog | 6 ++++++ glabels2/src/stock.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/glabels2/ChangeLog b/glabels2/ChangeLog index 9f98bed0..d5f0f18c 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-17 Jim Evins * libglabels/category.h: diff --git a/glabels2/src/stock.c b/glabels2/src/stock.c index 311be4b5..7f312109 100644 --- a/glabels2/src/stock.c +++ b/glabels2/src/stock.c @@ -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); -- 2.39.2