From 22e4c80cc35e552ef39639a874f3c54f11fde747 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 24 Dec 2012 17:16:22 +0300 Subject: Fix for race conditions in application termination. This bug mostly visible in windows. --- src/touchmanager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/touchmanager.cpp') 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); -- cgit v1.2.3-70-g09d2