Fixed memory leak: release received stream features xml element when starting stream compression.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4056 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2011-01-24 10:11:34 +00:00
parent a8889c9c15
commit 8d3918a79f
1 changed files with 3 additions and 1 deletions

View File

@ -2208,8 +2208,10 @@ bool JBStream::processFeaturesOut(XmlElement* xml, const JabberID& from,
}
// Check compression
XmlElement* x = checkCompress();
if (x)
if (x) {
TelEngine::destruct(xml);
return sendStreamXml(Compressing,x);
}
JBClientStream* client = clientStream();
if (client) {
TelEngine::destruct(xml);