summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-30 21:39:08 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-30 21:39:08 +0300
commit59572017b51da88d07744c8feab64d356d2e33ff (patch)
treecfa6f63762f71876716fcfec73abf28327198d08 /src/keyboardconfig.cpp
parentfce58131916103f3c2120adafcf59895a402a634 (diff)
downloadplus-59572017b51da88d07744c8feab64d356d2e33ff.tar.gz
plus-59572017b51da88d07744c8feab64d356d2e33ff.tar.bz2
plus-59572017b51da88d07744c8feab64d356d2e33ff.tar.xz
plus-59572017b51da88d07744c8feab64d356d2e33ff.zip
Clean all vars on exit except logger.
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)