Mercurial > pidgin
diff libpurple/protocols/oscar/rxhandlers.c @ 17191:1927f4ead3ca
Make all the oscar memory allocations and frees use the glib functions to avoid problems when mixing C runtimes.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 22 May 2007 18:56:09 +0000 |
parents | 32c366eeeb99 |
children | 44b4e8bd759b |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/rxhandlers.c Tue May 22 13:00:00 2007 +0000 +++ b/libpurple/protocols/oscar/rxhandlers.c Tue May 22 18:56:09 2007 +0000 @@ -55,14 +55,14 @@ mod = g_new0(aim_module_t, 1); if (modfirst(od, mod) == -1) { - free(mod); + g_free(mod); return -1; } if (aim__findmodule(od, mod->name)) { if (mod->shutdown) mod->shutdown(od, mod); - free(mod); + g_free(mod); return -1; } @@ -86,7 +86,7 @@ if (cur->shutdown) cur->shutdown(od, cur); - free(cur); + g_free(cur); cur = tmp; }