summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_polling.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_polling.cpp5
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)