changeset 28428:0849e1c20486

Prevent an assertion when the status icon pixbuf isn't found.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 25 Oct 2009 03:30:03 +0000
parents f0d103b366df
children 1c542f86dbcf
files pidgin/gtkprefs.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkprefs.c	Sat Oct 24 17:46:30 2009 +0000
+++ b/pidgin/gtkprefs.c	Sun Oct 25 03:30:03 2009 +0000
@@ -624,7 +624,8 @@
 		_("The default Pidgin status icon theme"));
 	gtk_list_store_set(prefs_status_icon_themes, &iter, 0, pixbuf, 1, tmp, 2, "", -1);
 	g_free(tmp);
-	g_object_unref(G_OBJECT(pixbuf));
+	if (pixbuf)
+		g_object_unref(G_OBJECT(pixbuf));
 
 	purple_theme_manager_for_each_theme(prefs_themes_sort);
 	pref_sound_generate_markup();