Fix memory release

develop
kaetemi 4 years ago
parent e9fdac30a2
commit c9f967b52b

@ -135,12 +135,12 @@ CApplicationContext::~CApplicationContext()
while (it != iend) while (it != iend)
{ {
// can't use nldebug there because it'll create new displayers // can't use nldebug there because it'll create new displayers
std::string message = toString("Instance '%s' still allocated at %p", it->first.c_str(), it->second); std::string message = toString("Instance '%s' still allocated at %p\n", it->first.c_str(), it->second);
#ifdef NL_OS_WINDOWS #ifdef NL_OS_WINDOWS
OutputDebugStringW(nlUtf8ToWide(message)); OutputDebugStringW(nlUtf8ToWide(message));
#else #else
printf("%s\n", message.c_str()); printf("%s", message.c_str());
#endif #endif
++it; ++it;

@ -704,6 +704,7 @@ void release()
CIXml::releaseLibXml(); CIXml::releaseLibXml();
CHttpCache::release(); CHttpCache::release();
CStrictTransportSecurity::release(); CStrictTransportSecurity::release();
CCoTask::releaseInstance();
#if FINAL_VERSION #if FINAL_VERSION
// openURL ("http://ryzom.com/exit/"); // openURL ("http://ryzom.com/exit/");

Loading…
Cancel
Save