Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
14087:c28883e918f0 | 14088:223570831b0b |
---|---|
208 g_object_unref(G_OBJECT(pixbuf)); | 208 g_object_unref(G_OBJECT(pixbuf)); |
209 pixbuf = scale; | 209 pixbuf = scale; |
210 } | 210 } |
211 | 211 |
212 gtk_image_set_from_pixbuf(GTK_IMAGE(dialog->icon_entry), pixbuf); | 212 gtk_image_set_from_pixbuf(GTK_IMAGE(dialog->icon_entry), pixbuf); |
213 g_object_unref(G_OBJECT(pixbuf)); | 213 if (pixbuf != NULL) |
214 g_object_unref(G_OBJECT(pixbuf)); | |
214 g_free(filename); | 215 g_free(filename); |
215 } | 216 } |
216 | 217 |
217 static void | 218 static void |
218 set_account_protocol_cb(GtkWidget *item, const char *id, | 219 set_account_protocol_cb(GtkWidget *item, const char *id, |