mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2024-11-27 01:35:40 -05:00
Fix touch memory leak
This commit is contained in:
parent
d47641ce43
commit
85cbe270a6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue