fixed crash

This commit is contained in:
orignal 2014-09-20 16:26:36 -04:00
parent 89f58d0a7a
commit 0c3949ef7a

View File

@ -408,8 +408,8 @@ namespace tunnel
auto pool = (*it)->GetTunnelPool ();
if (pool)
pool->TunnelExpired (tunnel);
delete *it;
it = m_OutboundTunnels.erase (it);
delete tunnel;
}
else
{
@ -449,8 +449,8 @@ namespace tunnel
auto pool = tunnel->GetTunnelPool ();
if (pool)
pool->TunnelExpired (tunnel);
delete tunnel;
it = m_InboundTunnels.erase (it);
delete tunnel;
}
else
{