From 7c7d9e2a1620f815496976583b7be759f8d809de Mon Sep 17 00:00:00 2001 From: paulc Date: Mon, 30 Jun 2014 16:07:15 +0000 Subject: [PATCH] Fixed cleanup for TCP connections where same stream is used for In and Out. git-svn-id: http://yate.null.ro/svn/yate/trunk@5858 acf43c95-373e-0410-b603-e72c3f656dc1 --- modules/extmodule.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/extmodule.cpp b/modules/extmodule.cpp index d1e20750..533cb14d 100644 --- a/modules/extmodule.cpp +++ b/modules/extmodule.cpp @@ -811,6 +811,8 @@ ExtModReceiver::~ExtModReceiver() closeAudio(); Stream* tmp = m_in; m_in = 0; + if (tmp == m_out) + m_out = 0; delete tmp; tmp = m_out; m_out = 0;