summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r--src/keyboardconfig.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index 390634b3c..ddfb30f97 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -52,6 +52,12 @@ void KeyboardConfig::init()
mActiveKeys2 = new uint8_t[500];
}
+void KeyboardConfig::deinit()
+{
+ delete [] mActiveKeys2;
+ mActiveKeys2 = nullptr;
+}
+
int KeyboardConfig::getKeyValueFromEvent(const SDL_Event &event) const
{
if (event.key.keysym.sym)