From 85cbe270a6e2cdcee91d1445b3732e16e9ee4604 Mon Sep 17 00:00:00 2001 From: Pavel fljot Date: Wed, 5 Sep 2012 16:59:02 +0300 Subject: [PATCH] Fix touch memory leak --- src/org/gestouch/core/GesturesManager.as | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/gestouch/core/GesturesManager.as b/src/org/gestouch/core/GesturesManager.as index 1820be0..f8ebdf3 100644 --- a/src/org/gestouch/core/GesturesManager.as +++ b/src/org/gestouch/core/GesturesManager.as @@ -308,6 +308,8 @@ package org.gestouch.core } gesturesForTouch.length = 0;// release for GC + + delete _gesturesForTouchMap[touch];//TODO: remove this once Touch objects are pooled } @@ -327,6 +329,8 @@ package org.gestouch.core } gesturesForTouch.length = 0;// release for GC + + delete _gesturesForTouchMap[touch];//TODO: remove this once Touch objects are pooled }