Fixed: Release CCurrentCoTask singleton

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent 06cc0ddec8
commit eabfcbf708

@ -201,7 +201,9 @@ namespace NLMISC
*/
void sleep(uint milliseconds);
/** Release internal instance.
*/
static void releaseInstance();
};

@ -213,6 +213,16 @@ namespace NLMISC
return _ThreadMainFiber.getPointer();
}
#endif
static void releaseInstance()
{
if (_Instance)
{
NLMISC::INelContext::getInstance().releaseSingletonPointer("CCurrentCoTask", _Instance);
delete _Instance;
_Instance = NULL;
}
}
};
NLMISC_SAFE_SINGLETON_IMPL(CCurrentCoTask);
@ -560,5 +570,10 @@ namespace NLMISC
}
}
void CCoTask::releaseInstance()
{
CCurrentCoTask::releaseInstance();
}
} // namespace NLMISC

@ -669,6 +669,7 @@ void release()
CWidgetManager::release();
CViewRenderer::release();
CIXml::releaseLibXml();
CCoTask::releaseInstance();
#if FINAL_VERSION
// openURL ("http://www.ryzomcore.org/exit/");

Loading…
Cancel
Save