[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "retry_deux" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Apr 25 14:04:43 CDT 2012
branch "retry_deux" has been updated
via c90e9070e1a2f1d1f3959913c3bc2e8db998331e (commit)
from 307ed002080a69571d11d7e375323a49c50546f0 (commit)
Summary of changes:
src/PJSIPManager.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit c90e9070e1a2f1d1f3959913c3bc2e8db998331e
Author: Brent Eagles <beagles at digium.com>
Date: Wed Apr 25 16:32:53 2012 -0230
Fix an iterator/erase bug when reaping destroyed transport objects.
diff --git a/src/PJSIPManager.cpp b/src/PJSIPManager.cpp
index d706c29..11a917a 100644
--- a/src/PJSIPManager.cpp
+++ b/src/PJSIPManager.cpp
@@ -189,7 +189,7 @@ void PJSIPManager::addTransport(const string& id, const TransportPtr& transport)
{
if (i->second->isDestroyed())
{
- mTransports.erase(i);
+ mTransports.erase(i++);
}
else
{
@@ -207,7 +207,7 @@ TransportPtr PJSIPManager::getTransport(const string& id)
{
if (i->second->isDestroyed())
{
- mTransports.erase(i);
+ mTransports.erase(i++);
}
else
{
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list