Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/page.c Sat May 03 21:03:13 2008 +0000 +++ b/libpurple/protocols/msn/page.c Sat May 03 23:51:43 2008 +0000 @@ -39,14 +39,9 @@ { g_return_if_fail(page != NULL); - if (page->body != NULL) - g_free(page->body); - - if (page->from_location != NULL) - g_free(page->from_location); - - if (page->from_phone != NULL) - g_free(page->from_phone); + g_free(page->body); + g_free(page->from_location); + g_free(page->from_phone); g_free(page); }