changeset 16595:f2d2df46e68e

Part of the patch in ticket #383: There is also a crash when removing an icon for an account. This happens because _unref-ing should return NULL if refcount reaches 0, and the return value should be respected. committer: Richard Laager <rlaager@wiktel.com>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 28 Apr 2007 17:59:01 +0000
parents 513ca15861d7
children 63a1de71e389
files libpurple/imgstore.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/imgstore.c	Sat Apr 28 17:06:11 2007 +0000
+++ b/libpurple/imgstore.c	Sat Apr 28 17:59:01 2007 +0000
@@ -160,6 +160,7 @@
 		g_free(img->data);
 		g_free(img->filename);
 		g_free(img);
+		img = NULL;
 	}
 
 	return img;