From: <the...@us...> - 2006-08-12 10:06:22
|
Revision: 16711 Author: thekingant Date: 2006-08-12 03:06:15 -0700 (Sat, 12 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16711&view=rev Log Message: ----------- Get rid of an assert when editing an account that has no icon Modified Paths: -------------- trunk/src/gtkaccount.c Modified: trunk/src/gtkaccount.c =================================================================== --- trunk/src/gtkaccount.c 2006-08-11 19:56:55 UTC (rev 16710) +++ trunk/src/gtkaccount.c 2006-08-12 10:06:15 UTC (rev 16711) @@ -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); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |