Fixed memory leak: release database query messages after use.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4054 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
22043b1ebf
commit
4df6bc7214
|
@ -648,6 +648,7 @@ bool JBFeaturesModule::handleFeatureMsgOffline(JabberID& from, Message& msg)
|
|||
Debug(this,DebugNote,"Invalid database offline chat xml for user=%s",
|
||||
from.bare().c_str());
|
||||
}
|
||||
TelEngine::destruct(m);
|
||||
return true;
|
||||
}
|
||||
if (*oper == "delete") {
|
||||
|
|
|
@ -2476,6 +2476,7 @@ bool SubscriptionModule::handleUserRosterUpdate(const String& user, const String
|
|||
Array* contactData = notifyRosterUpdate(user,contact,true);
|
||||
if (!contactData) {
|
||||
TelEngine::destruct(u);
|
||||
TelEngine::destruct(m);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -2529,6 +2530,7 @@ bool SubscriptionModule::handleUserRosterUpdate(const String& user, const String
|
|||
}
|
||||
u->unlock();
|
||||
TelEngine::destruct(u);
|
||||
TelEngine::destruct(m);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue