Mercurial > pidgin.yaz
diff src/protocols/oscar/oscar.c @ 10504:1a97d5e88d12
[gaim-migrate @ 11796]
Lots of things here:
- Several memory leak fixes
- A few invalid memory access fixes
- Fix a yahoo crash going idle when away
- Fix Add user in chats to actually fill in the screenname
- Add gaim_account_{get,set}_enabled to perl
- Fix command priorities (fixes /me in IRC)
- Fix MSN notification server transfer to be quiet about it
- Fix MSN blist sync if user has insane friendly name
- Make the docklet less crash-happy if it fails to embed in 3 seconds
- Only probe for native plugins with the correct file extension
- 1 typo fix :)
... and quite possibly something else I forgot.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 11 Jan 2005 17:25:06 +0000 |
parents | aba3000cc50a |
children | 461334f300d7 |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Tue Jan 11 02:00:44 2005 +0000 +++ b/src/protocols/oscar/oscar.c Tue Jan 11 17:25:06 2005 +0000 @@ -1251,7 +1251,8 @@ /* for each valid image tag... */ while (gaim_markup_find_tag("img", tmp, &start, &end, &attribs)) { const char *id, *src, *datasize; - const char *tag = NULL, *data = NULL; + const char *data = NULL; + char *tag = NULL; size_t size; int imgid = 0; @@ -1271,6 +1272,8 @@ if (tag && (data = gaim_strcasestr(binary, tag))) data += strlen(tag); + g_free(tag); + /* check the data is here and store it */ if (data + (size = atoi(datasize)) <= msgend) imgid = gaim_imgstore_add(data, size, src);