Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/page.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 | c8f99cb61dc9 |
children | d70aad03b491 |
comparison
equal
deleted
inserted
replaced
22807:0b11895cc564 | 22808:f62a4a7fe365 |
---|---|
37 void | 37 void |
38 msn_page_destroy(MsnPage *page) | 38 msn_page_destroy(MsnPage *page) |
39 { | 39 { |
40 g_return_if_fail(page != NULL); | 40 g_return_if_fail(page != NULL); |
41 | 41 |
42 if (page->body != NULL) | 42 g_free(page->body); |
43 g_free(page->body); | 43 g_free(page->from_location); |
44 | 44 g_free(page->from_phone); |
45 if (page->from_location != NULL) | |
46 g_free(page->from_location); | |
47 | |
48 if (page->from_phone != NULL) | |
49 g_free(page->from_phone); | |
50 | 45 |
51 g_free(page); | 46 g_free(page); |
52 } | 47 } |
53 | 48 |
54 char * | 49 char * |