aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/input/inputengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/input/inputengine.cpp')
-rw-r--r--engines/sword25/input/inputengine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sword25/input/inputengine.cpp b/engines/sword25/input/inputengine.cpp
index 181e13b7ff..425e46431c 100644
--- a/engines/sword25/input/inputengine.cpp
+++ b/engines/sword25/input/inputengine.cpp
@@ -76,6 +76,10 @@ InputEngine::InputEngine(Kernel *pKernel) :
BS_LOGLN("Script bindings registered.");
}
+InputEngine::~InputEngine() {
+ unregisterScriptBindings();
+}
+
Service *InputEngine_CreateObject(Kernel *pKernel) {
return new InputEngine(pKernel);
}