cpw.malu.xmpp.jingle_ft: 999b2917: Fix a couple of missing g_object_unref

malu at pidgin.im malu at pidgin.im
Mon Jan 18 16:11:22 EST 2010


-----------------------------------------------------------------
Revision: 999b2917d280f0c89f01b7c9559a602afbdb4b54
Ancestor: e5dfc4ab93e66f7f57be4cf40f17ec77246af3be
Author: malu at pidgin.im
Date: 2010-01-18T21:04:18
Branch: im.pidgin.cpw.malu.xmpp.jingle_ft
URL: http://d.pidgin.im/viewmtn/revision/info/999b2917d280f0c89f01b7c9559a602afbdb4b54

Modified files:
        libpurple/protocols/jabber/jingle/file-transfer.c

ChangeLog: 

Fix a couple of missing g_object_unref
Should fix the receiver destroying the session properly

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/file-transfer.c	96b6f656ccbf973344f55e5845a1147933dc875d
+++ libpurple/protocols/jabber/jingle/file-transfer.c	eb2bc196b508e8f0a2652529e870ecdbba58b0ef
@@ -606,6 +606,7 @@ jingle_file_transfer_cancel_recv(PurpleX
 		purple_debug_info("jingle-ft", "jingle_file_transfer_cancel_recv\n");
 		jabber_iq_send(terminate);
 		g_object_unref(transport);
+		g_object_unref(session);
 	}
 }
 
@@ -626,6 +627,7 @@ jingle_file_transfer_xfer_end(PurpleXfer
 			jabber_iq_set_callback(terminate, jingle_file_transfer_terminate_cb,
 			    xfer);
 			jabber_iq_send(terminate);
+			g_object_unref(session);
 		} else {
 			/* the PurpleXfer will get unref:ed after this has finished, so we
 		 	disconnect it to avoid a race-condition if we get here before the


More information about the Commits mailing list