From 114db227e97285dbce0edc4a3b9df4bce530f3de Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Feb 2016 21:43:00 +0300 Subject: Fix crash on exit with enables onscreen buttons. --- src/input/touch/touchmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input') diff --git a/src/input/touch/touchmanager.cpp b/src/input/touch/touchmanager.cpp index 5c7de8189..85dce0f9a 100644 --- a/src/input/touch/touchmanager.cpp +++ b/src/input/touch/touchmanager.cpp @@ -74,7 +74,6 @@ TouchManager::TouchManager() : TouchManager::~TouchManager() { clear(); - delete2(mVertexes); CHECKLISTENERS } @@ -191,6 +190,7 @@ void TouchManager::clear() restrict2 FOR_EACH (TouchItemVectorCIter, it, mObjects) unload(*it); mObjects.clear(); + delete2(mVertexes); mRedraw = true; } -- cgit v1.2.3-70-g09d2