diff pidgin/gtkdialogs.c @ 30723:9e42b9ea8fd3

Don't assert if logo is missing. This shouldn't really affect people normally.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 25 Jul 2010 22:22:29 +0000
parents 59e8e11f3fae
children a551fb648e09
line wrap: on
line diff
--- a/pidgin/gtkdialogs.c	Fri Jul 23 18:18:04 2010 +0000
+++ b/pidgin/gtkdialogs.c	Sun Jul 25 22:22:29 2010 +0000
@@ -430,7 +430,8 @@
 
 	/* Insert the logo */
 	logo = gtk_image_new_from_pixbuf(pixbuf);
-	g_object_unref(G_OBJECT(pixbuf));
+	if (pixbuf)
+		g_object_unref(G_OBJECT(pixbuf));
 	obj = gtk_widget_get_accessible(logo);
 	tmp = g_strconcat(PIDGIN_NAME, " " DISPLAY_VERSION, NULL);
 	atk_object_set_description(obj, tmp);