Mercurial > pidgin.yaz
diff src/protocols/sametime/sametime.c @ 11132:a4611130e3eb
[gaim-migrate @ 13189]
A bit more dewarnification. I also think I found a memleak in sametime.
siege, could you please check that out sometime?
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 20 Jul 2005 02:43:09 +0000 |
parents | 2ce8ec01a064 |
children | 1081735edc10 |
line wrap: on
line diff
--- a/src/protocols/sametime/sametime.c Tue Jul 19 10:16:32 2005 +0000 +++ b/src/protocols/sametime/sametime.c Wed Jul 20 02:43:09 2005 +0000 @@ -2304,7 +2304,7 @@ } else if(g_str_has_prefix(type, "image")) { /* put images into the image store */ - char *d_dat; + guint8 *d_dat; gsize d_len; char *cid; int img; @@ -2325,16 +2325,20 @@ /* recall the image for dereferencing later */ images = g_list_append(images, GINT_TO_POINTER(img)); + /* TODO: Don't we need to g_free 'd_dat'?! */ + } else if(g_str_has_prefix(type, "text")) { /* concatenate all the text parts together */ - char *data, *txt; + guint8 *data; + char *txt; gsize len; gaim_mime_part_get_data_decoded(part, &data, &len); - txt = gaim_utf8_try_convert(data); + txt = gaim_utf8_try_convert((const char *)data); g_string_append(str, txt); g_free(txt); + /* TODO: Don't we need to g_free 'data'?! */ } }