summaryrefslogtreecommitdiff
path: root/src/touchmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-24 17:16:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-24 20:02:37 +0300
commit22e4c80cc35e552ef39639a874f3c54f11fde747 (patch)
tree01daf65c47092d228127588ffbcb0e63b128f01a /src/touchmanager.cpp
parent1e54255d9578e00ed699a458d9772f1035564620 (diff)
downloadmanaplus-22e4c80cc35e552ef39639a874f3c54f11fde747.tar.gz
manaplus-22e4c80cc35e552ef39639a874f3c54f11fde747.tar.bz2
manaplus-22e4c80cc35e552ef39639a874f3c54f11fde747.tar.xz
manaplus-22e4c80cc35e552ef39639a874f3c54f11fde747.zip
Fix for race conditions in application termination.
This bug mostly visible in windows.
Diffstat (limited to 'src/touchmanager.cpp')
-rw-r--r--src/touchmanager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/touchmanager.cpp b/src/touchmanager.cpp
index 313337259..3dd9e64a9 100644
--- a/src/touchmanager.cpp
+++ b/src/touchmanager.cpp
@@ -54,12 +54,16 @@ TouchManager::TouchManager() :
TouchManager::~TouchManager()
{
- config.removeListeners(this);
clear();
delete mVertexes;
mVertexes = nullptr;
}
+void TouchManager::shutdown()
+{
+ config.removeListeners(this);
+}
+
void TouchManager::init()
{
config.addListener("showScreenJoystick", this);