FIXED: Crash caused by CInterfaceLinkUpdater trying to remove itself after CInterfaceManager had been released.

--HG--
branch : gui-refactoring
hg/feature/sse2
dfighter1985 13 years ago
parent b7feaa83cb
commit e694c62fdc

@ -137,7 +137,6 @@ CInterfaceLink::CInterfaceLinkUpdater::CInterfaceLinkUpdater()
CInterfaceLink::CInterfaceLinkUpdater::~CInterfaceLinkUpdater()
{
CInterfaceManager::getInstance()->removeFlushObserver( this );
}
void CInterfaceLink::CInterfaceLinkUpdater::onObserverCallFlush()

@ -370,6 +370,8 @@ CInterfaceManager::~CInterfaceManager()
// release the database observers
releaseServerToLocalAutoCopyObservers();
removeFlushObserver( interfaceLinkUpdater );
delete interfaceLinkUpdater;
interfaceLinkUpdater = NULL;
}

Loading…
Cancel
Save