diff options
author | Paul Gilbert | 2016-09-14 18:43:15 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-14 18:43:15 -0400 |
commit | 87168baf323c9db3acd90d154848fd4f3a554df6 (patch) | |
tree | a3cb7055f5341380e37fca3571c37c0edb2503ba | |
parent | 1fa2519a1214cb7ed7ba70664a8afd1fbd4e2d2b (diff) | |
download | scummvm-rg350-87168baf323c9db3acd90d154848fd4f3a554df6.tar.gz scummvm-rg350-87168baf323c9db3acd90d154848fd4f3a554df6.tar.bz2 scummvm-rg350-87168baf323c9db3acd90d154848fd4f3a554df6.zip |
TITANIC: Add missing CInputHandler destructor
-rw-r--r-- | engines/titanic/input_handler.cpp | 4 | ||||
-rw-r--r-- | engines/titanic/input_handler.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/titanic/input_handler.cpp b/engines/titanic/input_handler.cpp index 2c51f3ece7..df09cf24fb 100644 --- a/engines/titanic/input_handler.cpp +++ b/engines/titanic/input_handler.cpp @@ -36,6 +36,10 @@ CInputHandler::CInputHandler(CGameManager *owner) : CScreenManager::_screenManagerPtr->_inputHandler = this; } +CInputHandler::~CInputHandler() { + CScreenManager::_screenManagerPtr->_inputHandler = nullptr; +} + void CInputHandler::setTranslator(CInputTranslator *translator) { _inputTranslator = translator; } diff --git a/engines/titanic/input_handler.h b/engines/titanic/input_handler.h index 7244ddc050..d5f29b7921 100644 --- a/engines/titanic/input_handler.h +++ b/engines/titanic/input_handler.h @@ -59,6 +59,7 @@ public: bool _singleton; public: CInputHandler(CGameManager *owner); + ~CInputHandler(); void setTranslator(CInputTranslator *translator); |