Avoid message double destruction if trying to send an invalid command.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4373 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
34c79e5cd6
commit
fa8b1cb15a
|
@ -1477,7 +1477,8 @@ bool MGCPCircuit::sendAsync(MGCPMessage* mm, bool notify)
|
|||
return true;
|
||||
}
|
||||
}
|
||||
TelEngine::destruct(mm);
|
||||
else
|
||||
TelEngine::destruct(mm);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue