Leak fixes

Wed, 23 Apr 2008 14:55:29 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Wed, 23 Apr 2008 14:55:29 +0000
changeset 22848
f5d49420a15c
parent 22847
fea937d28d73
child 22849
57d8645abd91

Leak fixes

libpurple/protocols/msnp9/slplink.c file | annotate | diff | comparison | revisions
libpurple/protocols/msnp9/switchboard.c file | annotate | diff | comparison | revisions
--- 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);
 

mercurial