changeset 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 ec3830b344f2
children 1255c1c4f7ab
files src/buddy.c src/list.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
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))
--- a/src/list.c	Tue Apr 01 21:02:46 2003 +0000
+++ b/src/list.c	Wed Apr 02 00:36:07 2003 +0000
@@ -343,6 +343,7 @@
 		node->next->prev = node->prev;
 
 	ops->remove(gaimbuddylist, node);
+	g_hash_table_destroy(buddy->settings);
 	g_free(buddy->name);
 	g_free(buddy->alias);
 	g_free(buddy);