diff options
author | Piotr Piastucki <leech.miranda@gmail.com> | 2015-05-19 21:00:49 +0000 |
---|---|---|
committer | Piotr Piastucki <leech.miranda@gmail.com> | 2015-05-19 21:00:49 +0000 |
commit | 38a93d167307c8d1912abeaf32182abe97a03598 (patch) | |
tree | 2602113bb73b15a4cd1a272a2d8464d60141c844 /protocols/MSN/src/msn_chat.cpp | |
parent | 05463e65c1fa74da551b9acf701366e185e516fc (diff) |
Fixed some memleaks.
Added contact list exchange feature.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13704 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_chat.cpp')
-rw-r--r-- | protocols/MSN/src/msn_chat.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/MSN/src/msn_chat.cpp b/protocols/MSN/src/msn_chat.cpp index 3c0488dfde..afdc41d3a9 100644 --- a/protocols/MSN/src/msn_chat.cpp +++ b/protocols/MSN/src/msn_chat.cpp @@ -196,6 +196,7 @@ void CMsnProto::MSN_GCProcessThreadActivity(ezxml_t xmli, const TCHAR *mChatID) gce.ptszText = mir_a2t(ezxml_txt(ezxml_child(xmli, "value")));
CallServiceSync(MS_GC_EVENT, 0, (LPARAM)&gce);
mir_free((TCHAR*)gce.ptszUID);
+ mir_free((TCHAR*)gce.ptszText);
}
else if (ezxml_t target = ezxml_child(xmli, "target")) {
MCONTACT hContInitiator = NULL;
@@ -258,9 +259,9 @@ void CMsnProto::MSN_GCProcessThreadActivity(ezxml_t xmli, const TCHAR *mChatID) CallServiceSync(MS_GC_EVENT, SESSION_OFFLINE, (LPARAM)&gce);
break;
}
+ mir_free((TCHAR*)gce.ptszUID);
target = ezxml_next(target);
}
- mir_free((TCHAR*)gce.ptszUID);
}
}
}
|