changeset 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 c28883e918f0
children 10e8eb6a4910
files src/gtkaccount.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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);
 }