diff src/buddy.c @ 4954:decdf19454ab

[gaim-migrate @ 5288] bugfix and 2 memleak fixes. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 02 Apr 2003 00:36:07 +0000
parents 24c9a23df63b
children aa273fba7b09
line wrap: on
line diff
--- a/src/buddy.c	Tue Apr 01 21:02:46 2003 +0000
+++ b/src/buddy.c	Wed Apr 02 00:36:07 2003 +0000
@@ -890,6 +890,7 @@
 					      1, 1,
 					      GDK_INTERP_BILINEAR,
 					      255);
+			g_object_unref(G_OBJECT(emblem));
 		}
 	}
 
@@ -1386,7 +1387,7 @@
 	if (get_iter_from_node(node, &iter)) {
 		gtk_tree_store_remove(gtkblist->treemodel, &iter);
 		if(GAIM_BLIST_NODE_IS_BUDDY(node) &&
-		   !blist_options & OPT_BLIST_SHOW_OFFLINE &&
+		   !(blist_options & OPT_BLIST_SHOW_OFFLINE) &&
 		   gaim_blist_get_group_online_count((struct group *)node->parent) == 0) {
 			GtkTreeIter groupiter;
 			if(get_iter_from_node(node->parent, &groupiter))