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
This commit is contained in:
paulc 2014-06-30 16:07:15 +00:00
parent cb382e02a2
commit 7c7d9e2a16
1 changed files with 2 additions and 0 deletions

View File

@ -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;