Fix memory release

develop
kaetemi 4 years ago
parent 2444d94f4f
commit 297de1d19a

@ -40,7 +40,7 @@ class CTextureFile;
class CAsyncFileManager3D class CAsyncFileManager3D
{ {
NLMISC_SAFE_SINGLETON_DECL(CAsyncFileManager3D); NLMISC_SAFE_RELEASABLE_SINGLETON_DECL(CAsyncFileManager3D);
CAsyncFileManager3D(); CAsyncFileManager3D();
public: public:

@ -451,6 +451,7 @@ int main(int argc, char **argv)
// delete all logs and displayers when we're not using logs macros anymore // delete all logs and displayers when we're not using logs macros anymore
destroyDebug(); destroyDebug();
CLog::releaseProcessName(); CLog::releaseProcessName();
// CCoTask::releaseInstance();
// delete the Nel context // delete the Nel context
delete appContext; delete appContext;

@ -43,6 +43,7 @@
#include "nel/3d/u_visual_collision_manager.h" #include "nel/3d/u_visual_collision_manager.h"
#include "nel/3d/u_shape_bank.h" #include "nel/3d/u_shape_bank.h"
#include "nel/3d/stereo_hmd.h" #include "nel/3d/stereo_hmd.h"
#include "nel/3d/async_file_manager_3d.h"
// Client // Client
#include "global.h" #include "global.h"
#include "release.h" #include "release.h"
@ -572,6 +573,8 @@ void release()
{ {
CLoginProgressPostThread::getInstance().step(CLoginStep(LoginStep_GameExit, "login_step_game_exit&play_time=" + toString((NLMISC::CTime::getLocalTime() - StartPlayTime) / 1000))); CLoginProgressPostThread::getInstance().step(CLoginStep(LoginStep_GameExit, "login_step_game_exit&play_time=" + toString((NLMISC::CTime::getLocalTime() - StartPlayTime) / 1000)));
} }
setCrashCallback(NULL);
#ifdef RYZOM_BG_DOWNLOADER #ifdef RYZOM_BG_DOWNLOADER
CBGDownloaderAccess::getInstance().release(); CBGDownloaderAccess::getInstance().release();
@ -704,7 +707,7 @@ void release()
CIXml::releaseLibXml(); CIXml::releaseLibXml();
CHttpCache::release(); CHttpCache::release();
CStrictTransportSecurity::release(); CStrictTransportSecurity::release();
CCoTask::releaseInstance(); CAsyncFileManager3D::releaseInstance();
#if FINAL_VERSION #if FINAL_VERSION
// openURL ("http://ryzom.com/exit/"); // openURL ("http://ryzom.com/exit/");

Loading…
Cancel
Save