pidgin: c16910f9: This was a memory leak, right?

markdoliner at pidgin.im markdoliner at pidgin.im
Mon Aug 10 19:27:01 EDT 2009


-----------------------------------------------------------------
Revision: c16910f9501709e93fca69bbfa44975763db46ae
Ancestor: 0f8154c958deb1d89108a69a069d2c722d225db1
Author: markdoliner at pidgin.im
Date: 2009-08-10T23:24:39
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c16910f9501709e93fca69bbfa44975763db46ae

Modified files:
        libpurple/protocols/jabber/buddy.c

ChangeLog: 

This was a memory leak, right?

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/buddy.c	ee71b63ec0e3ab62bb233c69ddcac515df96586a
+++ libpurple/protocols/jabber/buddy.c	6548052aac1cca5bbaf21433d7763fca95ec0817
@@ -513,6 +513,7 @@ void jabber_set_info(PurpleConnection *g
 
 		xmlnode_insert_data(binval, enc, -1);
 		g_free(enc);
+		purple_imgstore_unref(img);
 	} else if (vc_node) {
 		xmlnode *photo;
 		/* TODO: Remove all PHOTO children? (see above note) */


More information about the Commits mailing list