From 2e55f9986065f7cd12b24444e188ea0e2ab51d9d Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 27 Jun 2016 17:46:12 +0300 Subject: [PATCH] Also release the context when terminating the command manager. --- source/Command.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/Command.cpp b/source/Command.cpp index 805fc964..c93bfdf5 100644 --- a/source/Command.cpp +++ b/source/Command.cpp @@ -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();