diff src/gtkaccount.c @ 14088:223570831b0b

[gaim-migrate @ 16711] Get rid of an assert when editing an account that has no icon committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 12 Aug 2006 10:06:15 +0000
parents 8bda65b88e49
children 31d33e7bc0e6
line wrap: on
line diff
--- a/src/gtkaccount.c	Fri Aug 11 19:56:55 2006 +0000
+++ b/src/gtkaccount.c	Sat Aug 12 10:06:15 2006 +0000
@@ -210,7 +210,8 @@
 	}
 
 	gtk_image_set_from_pixbuf(GTK_IMAGE(dialog->icon_entry), pixbuf);
-	g_object_unref(G_OBJECT(pixbuf));
+	if (pixbuf != NULL)
+		g_object_unref(G_OBJECT(pixbuf));
 	g_free(filename);
 }