changeset 22035:0b297184de17

There's nothing wrong with calling purple_buddy_icons_find() can not receiving an icon in return - it just means that no icon was found. We shouldn't attempt to call purple_buddy_icon_ref() on NULL, which will trigger a failed assertion.
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 08 Jan 2008 02:47:51 +0000
parents d63892ade0a6
children f4c0a7014498 9c367aabb49e
files libpurple/buddyicon.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/buddyicon.c	Tue Jan 08 00:22:48 2008 +0000
+++ b/libpurple/buddyicon.c	Tue Jan 08 02:47:51 2008 +0000
@@ -625,7 +625,7 @@
 		purple_buddy_icons_set_caching(caching);
 	}
 
-	return purple_buddy_icon_ref(icon);
+	return (icon ? purple_buddy_icon_ref(icon) : nil);
 }
 
 gboolean