pidgin: 009cd179: Fix a leak when loading themes.

paul at darkrain42.org paul at darkrain42.org
Sun Apr 12 17:00:40 EDT 2009


-----------------------------------------------------------------
Revision: 009cd1791a028ae463fba5c8a2ee1c60021efb61
Ancestor: e7a572653bbe02d5d4ec2efc43c303629911993b
Author: paul at darkrain42.org
Date: 2009-04-12T20:47:38
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/009cd1791a028ae463fba5c8a2ee1c60021efb61

Modified files:
        libpurple/theme-manager.c

ChangeLog: 

Fix a leak when loading themes.

==2501== 384 bytes in 6 blocks are definitely lost in loss record 1,360 of 1,861
==2501==    by 0x09b11798: g_build_filename (gfileutils.c:1699)
==2501==    by 0x07d36a9d: purple_theme_manager_build_dir (theme-manager.c:130)
==2501==    by 0x07d36b7b: purple_theme_manager_refresh (theme-manager.c:169)
==2501==    by 0x07d0798c: purple_core_init (core.c:189)
==2501==    by 0x00483e46: main (gtkmain.c:774)

-------------- next part --------------
============================================================
--- libpurple/theme-manager.c	34b82709554bf42c3195d1f0e4bd8326f2b9c6d8
+++ libpurple/theme-manager.c	11c71186e4804d4ed1fb6661f8b4f90773d0b926
@@ -130,6 +130,7 @@ purple_theme_manager_build_dir(const gch
 				theme_dir = g_build_filename(purple_dir, type, NULL);
 
 				theme = purple_theme_loader_build(loader, theme_dir);
+				g_free(theme_dir);
 
 				if (PURPLE_IS_THEME(theme))
 					purple_theme_manager_add_theme(theme);


More information about the Commits mailing list