comparison pidgin/pidginstock.c @ 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 12dbf561b9c7
children 6e9917e067e6 b1284d63b969
comparison
equal deleted inserted replaced
28584:3b39438509c7 28585:60ab4bdea3c3
607 if (purple_prefs_get_string(PIDGIN_PREFS_ROOT "/status/icon-theme") && 607 if (purple_prefs_get_string(PIDGIN_PREFS_ROOT "/status/icon-theme") &&
608 (path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/status/icon-theme-dir"))) { 608 (path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/status/icon-theme-dir"))) {
609 609
610 PidginStatusIconTheme *theme = PIDGIN_STATUS_ICON_THEME(purple_theme_loader_build(PURPLE_THEME_LOADER(loader), path)); 610 PidginStatusIconTheme *theme = PIDGIN_STATUS_ICON_THEME(purple_theme_loader_build(PURPLE_THEME_LOADER(loader), path));
611 pidgin_stock_load_status_icon_theme(theme); 611 pidgin_stock_load_status_icon_theme(theme);
612 g_object_unref(G_OBJECT(theme)); 612 if (theme)
613 g_object_unref(G_OBJECT(theme));
613 614
614 } 615 }
615 else 616 else
616 pidgin_stock_load_status_icon_theme(NULL); 617 pidgin_stock_load_status_icon_theme(NULL);
617 618