changeset 29363:d73ec122554d

Zero freed memory to avoid a crash on re-init. Closes #10992. committer: Sadrul Habib Chowdhury <imadil@gmail.com>
author Ludovico Cavedon
date Thu, 04 Feb 2010 22:43:47 +0000
parents 1956b27ed87c
children ef1c3791ad32
files libpurple/buddyicon.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/buddyicon.c	Thu Feb 04 22:31:46 2010 +0000
+++ b/libpurple/buddyicon.c	Thu Feb 04 22:43:47 2010 +0000
@@ -1300,6 +1300,9 @@
 	g_hash_table_destroy(pointer_icon_cache);
 	g_free(old_icons_dir);
 	g_free(cache_dir);
+
+	cache_dir = NULL;
+	old_icons_dir = NULL;
 }
 
 void purple_buddy_icon_get_scale_size(PurpleBuddyIconSpec *spec, int *width, int *height)