# HG changeset patch # User Sadrul Habib Chowdhury # Date 1177783141 0 # Node ID f2d2df46e68e76e783566facb18fbcf388aa9229 # Parent 513ca15861d7a1de55f51cffc11afe9082ddd2b8 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 diff -r 513ca15861d7 -r f2d2df46e68e libpurple/imgstore.c --- 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;