cpw.qulogic.msnp16: 12c8afd7: Call xmlnode_free in the correct locatio...

qulogic at pidgin.im qulogic at pidgin.im
Mon Dec 14 02:27:01 EST 2009


-----------------------------------------------------------------
Revision: 12c8afd7dcb0f28128d5c69b147f76554af81725
Ancestor: 1e73925b7d242a7ceed199fb5aff2b9bab0f7224
Author: qulogic at pidgin.im
Date: 2009-12-10T07:35:27
Branch: im.pidgin.cpw.qulogic.msnp16
URL: http://d.pidgin.im/viewmtn/revision/info/12c8afd7dcb0f28128d5c69b147f76554af81725

Modified files:
        libpurple/protocols/msn/notification.c
        libpurple/protocols/msn/state.c

ChangeLog: 

Call xmlnode_free in the correct location.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	bf2df464ef22d338b4e5b2e3f64de9e7ea738c77
+++ libpurple/protocols/msn/notification.c	67b89bfe399c52d03de3f313b0c80068a0547df4
@@ -1709,6 +1709,9 @@ ubx_cmd_post(MsnCmdProc *cmdproc, MsnCom
 		g_free(str);
 
 		parse_user_endpoints(user, payloadNode);
+
+		xmlnode_free(payloadNode);
+
 	} else {
 		msn_user_set_statusline(user, NULL);
 		msn_user_set_currentmedia(user, NULL);
============================================================
--- libpurple/protocols/msn/state.c	0853f9bde58310f799b07ccba51ba4bce7995fcb
+++ libpurple/protocols/msn/state.c	82b2b87f8f64430076c6238dfba4742803ecdabb
@@ -177,8 +177,6 @@ msn_get_currentmedia(xmlnode *payloadNod
 	}
 	currentmedia = xmlnode_get_data(currentmediaNode);
 
-	xmlnode_free(payloadNode);
-
 	return currentmedia;
 }
 
@@ -198,8 +196,6 @@ msn_get_psm(xmlnode *payloadNode)
 	}
 	psm = xmlnode_get_data(psmNode);
 
-	xmlnode_free(payloadNode);
-
 	return psm;
 }
 


More information about the Commits mailing list