1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-19 12:07:13 +01:00

Also release the context when terminating the command manager.

This commit is contained in:
Sandu Liviu Catalin 2016-06-27 17:46:12 +03:00
parent aad10948b9
commit 2e55f99860

View File

@ -259,6 +259,8 @@ void CmdManager::Deinitialize()
}
// Clear the command list and release all references
m_Commands.clear();
// Release the current context if any
m_Context.Reset();
// Release the global callbacks
m_OnFail.ReleaseGently();
m_OnAuth.ReleaseGently();