# HG changeset patch # User Evan Schoenberg # Date 1199760471 0 # Node ID 0b297184de17745e0c7f61d565963b81c7408ce0 # Parent d63892ade0a68d12a3a0d6cf1cb96fb5bc594480 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. diff -r d63892ade0a6 -r 0b297184de17 libpurple/buddyicon.c --- 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