comparison libpurple/protocols/msn/slpcall.c @ 22808:f62a4a7fe365

Fix a number of leaks. As far as I can tell, MSNP14 now logs in without leaking.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sat, 03 May 2008 23:51:43 +0000
parents 723b5a2f91ce
children 96e78c0fa32b
comparison
equal deleted inserted replaced
22807:0b11895cc564 22808:f62a4a7fe365
69 g_return_if_fail(slpcall != NULL); 69 g_return_if_fail(slpcall != NULL);
70 70
71 if (slpcall->timer) 71 if (slpcall->timer)
72 purple_timeout_remove(slpcall->timer); 72 purple_timeout_remove(slpcall->timer);
73 73
74 if (slpcall->id != NULL) 74 g_free(slpcall->id);
75 g_free(slpcall->id); 75 g_free(slpcall->branch);
76 76 g_free(slpcall->data_info);
77 if (slpcall->branch != NULL)
78 g_free(slpcall->branch);
79
80 if (slpcall->data_info != NULL)
81 g_free(slpcall->data_info);
82 77
83 for (e = slpcall->slplink->slp_msgs; e != NULL; ) 78 for (e = slpcall->slplink->slp_msgs; e != NULL; )
84 { 79 {
85 MsnSlpMessage *slpmsg = e->data; 80 MsnSlpMessage *slpmsg = e->data;
86 e = e->next; 81 e = e->next;