summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_events.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_events.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/skype_events.cpp b/protocols/SkypeWeb/src/skype_events.cpp
index f48cbb1e9f..b0e4466ad6 100644
--- a/protocols/SkypeWeb/src/skype_events.cpp
+++ b/protocols/SkypeWeb/src/skype_events.cpp
@@ -73,11 +73,8 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam)
if (xmlDuration != NULL)
{
callDuration = _ttol(xmlGetText(xmlDuration));
- xmlDestroyNode(xmlDuration);
- xmlDestroyNode(xmlPart);
break;
}
- xmlDestroyNode(xmlPart);
}
}
@@ -124,7 +121,6 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam)
szText.AppendFormat(Translate("File transfer:\n\tFile name: %s \n\tSize: %lld bytes \n"), fileName, fileSize);
}
- xmlDestroyNode(xmlNode);
}
}
xmlDestroyNode(xml);
@@ -146,8 +142,7 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam)
HXML xmlA = xmlGetChildByPath(xml, _T("a"), 0);
if (xmlA != NULL)
{
- szText += _T2A(xmlGetAttrValue(xmlA, _T("href")));
- xmlDestroyNode(xmlA);
+ szText += T2Utf(xmlGetAttrValue(xmlA, _T("href")));
}
xmlDestroyNode(xml);
}