comparison libpurple/protocols/jabber/buddy.c @ 21596:637037d3748c

Fix a double-free and a leak at the same time. References: https://bugzilla.redhat.com/show_bug.cgi?id=390901
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 19 Nov 2007 20:50:48 +0000
parents 665e04562de0
children ce3d42470adf
comparison
equal deleted inserted replaced
21595:5f85d0781bee 21596:637037d3748c
556 widthstring = g_strdup_printf("%u", width); 556 widthstring = g_strdup_printf("%u", width);
557 xmlnode_set_attrib(info, "width", widthstring); 557 xmlnode_set_attrib(info, "width", widthstring);
558 g_free(widthstring); 558 g_free(widthstring);
559 heightstring = g_strdup_printf("%u", height); 559 heightstring = g_strdup_printf("%u", height);
560 xmlnode_set_attrib(info, "height", heightstring); 560 xmlnode_set_attrib(info, "height", heightstring);
561 g_free(lengthstring); 561 g_free(heightstring);
562 562
563 /* publish the metadata */ 563 /* publish the metadata */
564 jabber_pep_publish((JabberStream*)gc->proto_data, publish); 564 jabber_pep_publish((JabberStream*)gc->proto_data, publish);
565 565
566 g_free(hash); 566 g_free(hash);