From 6acc14758645539fb27eecfc0ea98c5a8798c851 Mon Sep 17 00:00:00 2001 From: Pavel fljot Date: Wed, 5 Sep 2012 13:44:51 +0300 Subject: [PATCH] Fixed memory leak (caused by Touch#target) --- src/org/gestouch/core/TouchesManager.as | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/gestouch/core/TouchesManager.as b/src/org/gestouch/core/TouchesManager.as index fb8b262..f5f19c6 100644 --- a/src/org/gestouch/core/TouchesManager.as +++ b/src/org/gestouch/core/TouchesManager.as @@ -179,6 +179,8 @@ package org.gestouch.core _activeTouchesCount--; _gesturesManager.onTouchEnd(touch); + + touch.target = null; } @@ -194,6 +196,8 @@ package org.gestouch.core _activeTouchesCount--; _gesturesManager.onTouchCancel(touch); + + touch.target = null; }