diff libpurple/buddyicon.c @ 28973: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 45123312b7a9
children da81195f635e
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)