comparison libpurple/protocols/jabber/buddy.c @ 28217:5a38fab8c199

This was a memory leak, right?
author Mark Doliner <mark@kingant.net>
date Mon, 10 Aug 2009 23:24:39 +0000
parents 0c90b164a735
children 901476dc70b9
comparison
equal deleted inserted replaced
28216:4a4e9d309fc0 28217:5a38fab8c199
511 511
512 js->avatar_hash = jabber_calculate_data_sha1sum(avatar_data, avatar_len); 512 js->avatar_hash = jabber_calculate_data_sha1sum(avatar_data, avatar_len);
513 513
514 xmlnode_insert_data(binval, enc, -1); 514 xmlnode_insert_data(binval, enc, -1);
515 g_free(enc); 515 g_free(enc);
516 purple_imgstore_unref(img);
516 } else if (vc_node) { 517 } else if (vc_node) {
517 xmlnode *photo; 518 xmlnode *photo;
518 /* TODO: Remove all PHOTO children? (see above note) */ 519 /* TODO: Remove all PHOTO children? (see above note) */
519 if ((photo = xmlnode_get_child(vc_node, "PHOTO"))) { 520 if ((photo = xmlnode_get_child(vc_node, "PHOTO"))) {
520 xmlnode_free(photo); 521 xmlnode_free(photo);