src/gtkaccount.c

changeset 14150
b9617d019b31
parent 14097
0c340861ab79
child 14195
0f7cb3b272b2
--- 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);
 }
 

mercurial