aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-14 18:43:15 -0400
committerPaul Gilbert2016-09-14 18:43:15 -0400
commit87168baf323c9db3acd90d154848fd4f3a554df6 (patch)
treea3cb7055f5341380e37fca3571c37c0edb2503ba /engines/titanic
parent1fa2519a1214cb7ed7ba70664a8afd1fbd4e2d2b (diff)
downloadscummvm-rg350-87168baf323c9db3acd90d154848fd4f3a554df6.tar.gz
scummvm-rg350-87168baf323c9db3acd90d154848fd4f3a554df6.tar.bz2
scummvm-rg350-87168baf323c9db3acd90d154848fd4f3a554df6.zip
TITANIC: Add missing CInputHandler destructor
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/input_handler.cpp4
-rw-r--r--engines/titanic/input_handler.h1
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);