diff options
author | George Hazan <george.hazan@gmail.com> | 2016-05-13 18:44:47 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-05-13 18:44:47 +0000 |
commit | f4a41df7b0b39972ebff39377363718d49201159 (patch) | |
tree | 7bb7bac3ceb2216c62fc3c95e34d33c8bd6dafb4 /protocols/SkypeWeb/src/skype_polling.cpp | |
parent | bfb7c716058266603f486f02c0a8eee435bd2bf6 (diff) |
two memory leaks fixed in SkypeWeb
git-svn-id: http://svn.miranda-ng.org/main/trunk@16826 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_polling.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp index 31de0c75c1..9de9e4108d 100644 --- a/protocols/SkypeWeb/src/skype_polling.cpp +++ b/protocols/SkypeWeb/src/skype_polling.cpp @@ -94,7 +94,9 @@ void CSkypeProto::ParsePollData(void *pData) {
debugLogA(__FUNCTION__);
- JSONNode data = JSONNode::parse((char*)pData);
+ ptrA szData((char*)pData); // memory must be freed in any case
+
+ JSONNode data = JSONNode::parse(szData);
if (!data) return;
const JSONNode &node = data["eventMessages"];
@@ -128,7 +130,6 @@ void CSkypeProto::ParsePollData(void *pData) ProcessThreadUpdate(resource);
}
}
- mir_free(pData);
}
void CSkypeProto::ProcessEndpointPresence(const JSONNode &node)
|