[glabels/glabels_2_2: 14/16] 2009-09-17 Jim Evins <evins snaught com>



commit d3a72579798314c893e9dd7b9c1dc0927f0a89f6
Author: Jim Evins <evins snaught com>
Date:   Fri Sep 18 01:58:24 2009 +0000

    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>.
    
    
    git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/branches/glabels-2_2 887 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 dd6f036..9c26654 100644
--- a/glabels2/ChangeLog
+++ b/glabels2/ChangeLog
@@ -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:
diff --git a/glabels2/src/stock.c b/glabels2/src/stock.c
index 72f1c25..a733e5c 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]