Mercurial > pidgin
diff libpurple/protocols/oscar/msgcookie.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/msgcookie.c Tue May 22 13:00:00 2007 +0000 +++ b/libpurple/protocols/oscar/msgcookie.c Tue May 22 18:56:09 2007 +0000 @@ -113,7 +113,7 @@ if (!c) return NULL; - cookie = calloc(1, sizeof(IcbmCookie)); + cookie = g_new0(IcbmCookie, 1); cookie->data = data; cookie->type = type; @@ -172,8 +172,8 @@ prev = &cur->next; } - free(cookie->data); - free(cookie); + g_free(cookie->data); + g_free(cookie); return 0; }
