pidgin: d483c041: Fix minor assert so I can run with G_DEB...

qulogic at pidgin.im qulogic at pidgin.im
Sat Sep 5 21:56:13 EDT 2009


-----------------------------------------------------------------
Revision: d483c0417907450a63d5a5a78cd893109a3bbd48
Ancestor: 2c92ba40df69fa1dd437743d2e6a754b30d77ce6
Author: qulogic at pidgin.im
Date: 2009-09-06T01:46:42
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d483c0417907450a63d5a5a78cd893109a3bbd48

Modified files:
        pidgin/pidginstock.c

ChangeLog: 

Fix minor assert so I can run with G_DEBUG=fatal_criticals.

-------------- next part --------------
============================================================
--- pidgin/pidginstock.c	f9a3ca4f7898c00e00157a68efaaaf7c90de4e73
+++ pidgin/pidginstock.c	d1da5e342d29fffdf381c68b779c2cb80c5e2caf
@@ -609,7 +609,8 @@ pidgin_stock_init(void)
 
 		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


More information about the Commits mailing list