mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 01:06:19 +00:00
FIXED: Crash caused by CInterfaceLinkUpdater trying to remove itself after CInterfaceManager had been released.
This commit is contained in:
parent
88cc7df755
commit
653ff421ea
2 changed files with 2 additions and 1 deletions
|
@ -137,7 +137,6 @@ CInterfaceLink::CInterfaceLinkUpdater::CInterfaceLinkUpdater()
|
||||||
|
|
||||||
CInterfaceLink::CInterfaceLinkUpdater::~CInterfaceLinkUpdater()
|
CInterfaceLink::CInterfaceLinkUpdater::~CInterfaceLinkUpdater()
|
||||||
{
|
{
|
||||||
CInterfaceManager::getInstance()->removeFlushObserver( this );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInterfaceLink::CInterfaceLinkUpdater::onObserverCallFlush()
|
void CInterfaceLink::CInterfaceLinkUpdater::onObserverCallFlush()
|
||||||
|
|
|
@ -370,6 +370,8 @@ CInterfaceManager::~CInterfaceManager()
|
||||||
|
|
||||||
// release the database observers
|
// release the database observers
|
||||||
releaseServerToLocalAutoCopyObservers();
|
releaseServerToLocalAutoCopyObservers();
|
||||||
|
|
||||||
|
removeFlushObserver( interfaceLinkUpdater );
|
||||||
delete interfaceLinkUpdater;
|
delete interfaceLinkUpdater;
|
||||||
interfaceLinkUpdater = NULL;
|
interfaceLinkUpdater = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue