Mercurial > pidgin.yaz
changeset 31106:1019ec61967a
Call xmlnode_free in the correct location.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 10 Dec 2009 07:35:27 +0000 |
parents | dfcd5190a4a9 |
children | 40a3dbdcf958 |
files | libpurple/protocols/msn/notification.c libpurple/protocols/msn/state.c |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c Wed Dec 09 21:50:01 2009 +0000 +++ b/libpurple/protocols/msn/notification.c Thu Dec 10 07:35:27 2009 +0000 @@ -1709,6 +1709,9 @@ g_free(str); parse_user_endpoints(user, payloadNode); + + xmlnode_free(payloadNode); + } else { msn_user_set_statusline(user, NULL); msn_user_set_currentmedia(user, NULL);
--- a/libpurple/protocols/msn/state.c Wed Dec 09 21:50:01 2009 +0000 +++ b/libpurple/protocols/msn/state.c Thu Dec 10 07:35:27 2009 +0000 @@ -177,8 +177,6 @@ } currentmedia = xmlnode_get_data(currentmediaNode); - xmlnode_free(payloadNode); - return currentmedia; } @@ -198,8 +196,6 @@ } psm = xmlnode_get_data(psmNode); - xmlnode_free(payloadNode); - return psm; }