Zero freed memory to avoid a crash on re-init.

Thu, 04 Feb 2010 22:43:47 +0000

author
Ludovico Cavedon <ludovico.cavedon@gmail.com>
date
Thu, 04 Feb 2010 22:43:47 +0000
changeset 29296
c351bc2db920
parent 29295
42c43b85e294
child 29297
7d0bcac40a10

Zero freed memory to avoid a crash on re-init.

Closes #10992.


committer: Sadrul Habib Chowdhury <sadrul@pidgin.im>

libpurple/buddyicon.c file | annotate | diff | comparison | revisions
--- 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)

mercurial