changeset 28585:60ab4bdea3c3

Fix minor assert so I can run with G_DEBUG=fatal_criticals.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 06 Sep 2009 01:46:42 +0000
parents 3b39438509c7
children 26ce61fc9556 c51f00627af4 a6cfb7bf8c88
files pidgin/pidginstock.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/pidginstock.c	Sun Sep 06 01:39:10 2009 +0000
+++ b/pidgin/pidginstock.c	Sun Sep 06 01:46:42 2009 +0000
@@ -609,7 +609,8 @@
 
 		PidginStatusIconTheme *theme = PIDGIN_STATUS_ICON_THEME(purple_theme_loader_build(PURPLE_THEME_LOADER(loader), path));
 		pidgin_stock_load_status_icon_theme(theme);
-		g_object_unref(G_OBJECT(theme));
+		if (theme)
+			g_object_unref(G_OBJECT(theme));
 
 	}
 	else