pidgin: 67b74ed7: Leak fixes

nosnilmot at pidgin.im nosnilmot at pidgin.im
Wed Apr 23 11:05:54 EDT 2008


-----------------------------------------------------------------
Revision: 67b74ed75ebb5cffa3dd71fb9a5a3d25a4176a8f
Ancestor: 253721900cc20da174e7adb4967375b59fdf4503
Author: nosnilmot at pidgin.im
Date: 2008-04-23T14:55:29
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/67b74ed75ebb5cffa3dd71fb9a5a3d25a4176a8f

Modified files:
        libpurple/protocols/msnp9/slplink.c
        libpurple/protocols/msnp9/switchboard.c

ChangeLog: 

Leak fixes

-------------- next part --------------
============================================================
--- libpurple/protocols/msnp9/slplink.c	8d60b4b4cc819be569c7fcabeac71e820226b75a
+++ libpurple/protocols/msnp9/slplink.c	0148f31961bbe4a9a992377e70db082952505db4
@@ -118,6 +118,8 @@ msn_slplink_destroy(MsnSlpLink *slplink)
 	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);
 
============================================================
--- libpurple/protocols/msnp9/switchboard.c	e229c1ae57fb742db488ee70c10281f16e9f66ba
+++ libpurple/protocols/msnp9/switchboard.c	e03bd61a71bc27c801b0bdf2d57438df9ea3db2d
@@ -111,6 +111,9 @@ msn_switchboard_destroy(MsnSwitchBoard *
 	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);
 


More information about the Commits mailing list