Fixed bug: remove relay from relays list when uninstalled to avoid keeping an invalid pointer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5321 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
7a3445a4ee
commit
ce58dea406
|
@ -1056,8 +1056,8 @@ bool Module::uninstallRelay(int id, bool delRelay)
|
|||
continue;
|
||||
Engine::uninstall(r);
|
||||
m_relays &= ~id;
|
||||
if (delRelay)
|
||||
TelEngine::destruct(r);
|
||||
l->remove(delRelay);
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue