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:
parent
a8889c9c15
commit
8d3918a79f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue