Permalink
Browse files

Fix touch memory leak

  • Loading branch information...
fljot committed Sep 5, 2012
1 parent d47641c commit 85cbe270a6e2cdcee91d1445b3732e16e9ee4604
Showing with 4 additions and 0 deletions.
  1. +4 −0 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
}

0 comments on commit 85cbe27

Please sign in to comment.