changeset 16667:df5fb079b1ad

This gets rid of a g_log error when uncache-ing a NULL file.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 29 Apr 2007 19:46:53 +0000
parents 9b41a619d2f7
children 64ce75d3efd4
files libpurple/buddyicon.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/buddyicon.c	Sun Apr 29 18:04:58 2007 +0000
+++ b/libpurple/buddyicon.c	Sun Apr 29 19:46:53 2007 +0000
@@ -854,7 +854,7 @@
 
 	if (old_img)
 		purple_imgstore_unref(old_img);
-	else
+	else if (old_icon)
 	{
 		/* The old icon may not have been loaded into memory.  In that
 		 * case, we'll need to uncache the filename.  The filenames