From 0c3949ef7ad6df796e50b6742970d28bd3899c63 Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 20 Sep 2014 16:26:36 -0400 Subject: [PATCH] fixed crash --- Tunnel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tunnel.cpp b/Tunnel.cpp index 3cbd628d..59eccc94 100644 --- a/Tunnel.cpp +++ b/Tunnel.cpp @@ -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 {