changeset 22688:48abe30dc90a

Leak fixes
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 23 Apr 2008 14:55:29 +0000
parents 757a571ae9be
children 1e7713b5e068
files libpurple/protocols/msnp9/slplink.c libpurple/protocols/msnp9/switchboard.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/slplink.c	Wed Apr 23 14:54:00 2008 +0000
+++ b/libpurple/protocols/msnp9/slplink.c	Wed Apr 23 14:55:29 2008 +0000
@@ -118,6 +118,8 @@
 	while (slplink->slp_calls != NULL)
 		msn_slp_call_destroy(slplink->slp_calls->data);
 
+	g_queue_free(slplink->slp_msg_queue);
+
 	session->slplinks =
 		g_list_remove(session->slplinks, slplink);
 
--- a/libpurple/protocols/msnp9/switchboard.c	Wed Apr 23 14:54:00 2008 +0000
+++ b/libpurple/protocols/msnp9/switchboard.c	Wed Apr 23 14:55:29 2008 +0000
@@ -111,6 +111,9 @@
 	for (l = swboard->users; l != NULL; l = l->next)
 		g_free(l->data);
 
+	if (swboard->users != NULL)
+		g_list_free(swboard->users);
+
 	session = swboard->session;
 	session->switches = g_list_remove(session->switches, swboard);