[evolution-patches] [calendar] fix for 314638



hi

 the memory allocated for a GDKPixBuf object
 in the function e_categories_config_get_icon_for ()
 was not freed causing a huge memory build up 
 when the icon is of considerable size.
 this is fixed with the attached patch.

regards
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/e-util/ChangeLog,v
retrieving revision 1.557
diff -u -p -w -r1.557 ChangeLog
--- ChangeLog	4 Oct 2005 13:06:06 -0000	1.557
+++ ChangeLog	2 Nov 2005 11:49:06 -0000
@@ -1,3 +1,9 @@
+2005-11-02  P S Chakravarthi <pchakravarthi novell com>
+
+	Fixes 314638
+	* e-categories-config.c e_categories_config_get_icon_for (): 
+	free the memory of the GDKPixBuf object created in this function.
+
 2005-10-04  Devashish Sharma  <sdevashish novell com>
 
 	* e-util.c (g_str_case_compare): added a function for case insensitive
Index: e-categories-config.c
===================================================================
RCS file: /cvs/gnome/evolution/e-util/e-categories-config.c,v
retrieving revision 1.20
diff -u -p -w -r1.20 e-categories-config.c
--- e-categories-config.c	24 Aug 2005 03:05:59 -0000	1.20
+++ e-categories-config.c	2 Nov 2005 11:49:06 -0000
@@ -56,6 +56,7 @@ e_categories_config_get_icon_for (const 
 	if (mask != NULL)
 		*mask = tmp_mask;
 
+	g_object_unref (pixbuf);
 	return TRUE;
 }
 


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