Skip to content
Permalink
Browse files

Remove message loop hook early in ~CCore

Solves crash offset 00042816
  • Loading branch information...
botder committed Oct 6, 2019
1 parent 992d682 commit 1bffa477a2c076b4572091190af22c9a50ef6613
Showing with 3 additions and 3 deletions.
  1. +3 −3 Client/core/CCore.cpp
@@ -138,6 +138,9 @@ CCore::~CCore()
// and is not affected by the master volume setting.
m_pLocalGUI->GetMainMenu()->GetSettingsWindow()->ResetGTAVolume();

// Remove input hook
CMessageLoopHook::GetSingleton().RemoveHook();

// Delete the mod manager
delete m_pModManager;
SAFE_DELETE(m_pMessageBox);
@@ -151,9 +154,6 @@ CCore::~CCore()
// Remove global events
g_pCore->m_pGUI->ClearInputHandlers(INPUT_CORE);

// Remove input hook
CMessageLoopHook::GetSingleton().RemoveHook();

// Store core variables to cvars
CVARS_SET("console_pos", m_pLocalGUI->GetConsole()->GetPosition());
CVARS_SET("console_size", m_pLocalGUI->GetConsole()->GetSize());

0 comments on commit 1bffa47

Please sign in to comment.
You can’t perform that action at this time.