[evolution-patches] memory leak in e-icon-factory



While fixing #62030, found this memory leak in e-icon-factory.c
-- 
Rodrigo Moya <rodrigo novell com>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/e-util/ChangeLog,v
retrieving revision 1.473
diff -u -p -r1.473 ChangeLog
--- ChangeLog	2 Aug 2004 18:34:55 -0000	1.473
+++ ChangeLog	5 Aug 2004 12:27:01 -0000
@@ -1,3 +1,8 @@
+2004-08-05  Rodrigo Moya <rodrigo novell com>
+
+	* e-icon-factory.c (e_icon_factory_get_icon): don't leak the icon_key
+	temporary string.
+
 2004-08-01  JP Rosevear  <jpr novell com>
 
 	* e-pilot-util.c (e_pilot_get_sync_source): find the source with
Index: e-icon-factory.c
===================================================================
RCS file: /cvs/gnome/evolution/e-util/e-icon-factory.c,v
retrieving revision 1.9
diff -u -p -r1.9 e-icon-factory.c
--- e-icon-factory.c	3 Jun 2004 15:01:33 -0000	1.9
+++ e-icon-factory.c	5 Aug 2004 12:27:01 -0000
@@ -317,6 +317,8 @@ e_icon_factory_get_icon (const char *ico
 	}
 	
 	pthread_mutex_unlock (&lock);
+
+	g_free (icon_key);
 	
 	return pixbuf;
 }


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