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:
marian 2011-05-13 11:02:39 +00:00
parent 34c79e5cd6
commit fa8b1cb15a
1 changed files with 2 additions and 1 deletions

View File

@ -1477,7 +1477,8 @@ bool MGCPCircuit::sendAsync(MGCPMessage* mm, bool notify)
return true;
}
}
TelEngine::destruct(mm);
else
TelEngine::destruct(mm);
return false;
}