Mercurial > pidgin
changeset 6053:74b281b4ae29
[gaim-migrate @ 6503]
odd man out
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 07 Jul 2003 14:49:55 +0000 |
parents | c062c4bf58ac |
children | 0bbe26d96e11 |
files | src/protocols/oscar/oscar.c src/util.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Mon Jul 07 04:44:36 2003 +0000 +++ b/src/protocols/oscar/oscar.c Mon Jul 07 14:49:55 2003 +0000 @@ -1834,8 +1834,8 @@ od->icontimer = g_timeout_add(500, gaim_icon_timerfunc, gc); } } - free(saved_b16); - free(b16); + g_free(saved_b16); + g_free(b16); } serv_got_update(gc, info->sn, 1, (info->warnlevel/10.0) + 0.5, signon, time_idle, type);
--- a/src/util.c Mon Jul 07 04:44:36 2003 +0000 +++ b/src/util.c Mon Jul 07 14:49:55 2003 +0000 @@ -441,7 +441,7 @@ if (!data || !length) return NULL; - ascii = malloc(length*2 + 1); + ascii = g_malloc(length*2 + 1); for (i=0; i<length; i++) snprintf(&ascii[i*2], 3, "%02hhx", data[i]); @@ -460,7 +460,7 @@ if (!ascii || !(len = strlen(ascii)) || (len % 2)) return 0; - data = malloc(len/2); + data = g_malloc(len/2); for (i=0; i<len; i++) { if (!(i % 2)) accumulator = 0;