Fixed ExtModReceiver leak when destroyed from cleanup()
git-svn-id: http://yate.null.ro/svn/yate/trunk@6145 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
f81a00b9e6
commit
dde447c2f5
|
@ -819,7 +819,7 @@ ExtModReceiver::ExtModReceiver(const char* name, Stream* io, ExtModChan* chan, i
|
|||
void ExtModReceiver::destruct()
|
||||
{
|
||||
Debug(DebugAll,"ExtModReceiver::destruct() pid=%d [%p]",m_pid,this);
|
||||
Lock lock(this);
|
||||
lock();
|
||||
// One destruction is plenty enough
|
||||
m_use = -1;
|
||||
s_mutex.lock();
|
||||
|
@ -837,6 +837,8 @@ void ExtModReceiver::destruct()
|
|||
tmp = m_out;
|
||||
m_out = 0;
|
||||
delete tmp;
|
||||
unlock();
|
||||
GenObject::destruct();
|
||||
}
|
||||
|
||||
void ExtModReceiver::closeIn()
|
||||
|
|
Loading…
Reference in New Issue