diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-30 21:39:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-30 21:39:08 +0300 |
commit | 59572017b51da88d07744c8feab64d356d2e33ff (patch) | |
tree | cfa6f63762f71876716fcfec73abf28327198d08 /src/keyboardconfig.cpp | |
parent | fce58131916103f3c2120adafcf59895a402a634 (diff) | |
download | mv-59572017b51da88d07744c8feab64d356d2e33ff.tar.gz mv-59572017b51da88d07744c8feab64d356d2e33ff.tar.bz2 mv-59572017b51da88d07744c8feab64d356d2e33ff.tar.xz mv-59572017b51da88d07744c8feab64d356d2e33ff.zip |
Clean all vars on exit except logger.
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r-- | src/keyboardconfig.cpp | 6 |
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) |