changeset 22931:09cab27cbe42

unleak (thanks sadrul!)
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 13 May 2008 20:54:30 +0000
parents 3ed8f8d074e4
children 9b7af052fd6a d464485a2bfc
files libpurple/protocols/msn/session.c libpurple/protocols/msnp9/session.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/session.c	Tue May 13 20:45:29 2008 +0000
+++ b/libpurple/protocols/msn/session.c	Tue May 13 20:54:30 2008 +0000
@@ -338,6 +338,7 @@
 
 	if (to_remove != NULL) {
 		g_list_foreach(to_remove, (GFunc)purple_blist_remove_buddy, NULL);
+		g_list_free(to_remove);
 	}
 }
 
--- a/libpurple/protocols/msnp9/session.c	Tue May 13 20:45:29 2008 +0000
+++ b/libpurple/protocols/msnp9/session.c	Tue May 13 20:54:30 2008 +0000
@@ -290,6 +290,7 @@
 
 	if (to_remove != NULL) {
 		g_list_foreach(to_remove, (GFunc)purple_blist_remove_buddy, NULL);
+		g_list_free(to_remove);
 	}
 }