changeset 26547:652efbbf1b45

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)
author Paul Aurich <paul@darkrain42.org>
date Sun, 12 Apr 2009 20:47:38 +0000
parents e7861a7978dc
children 3e274d6fcfaa 1c9bbfcc3687
files libpurple/theme-manager.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/theme-manager.c	Sun Apr 12 00:34:57 2009 +0000
+++ b/libpurple/theme-manager.c	Sun Apr 12 20:47:38 2009 +0000
@@ -130,6 +130,7 @@
 				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);