mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-02-18 08:20:14 -05:00
Fixed memory leak (caused by Touch#target)
This commit is contained in:
parent
146bed76ca
commit
6acc147586
1 changed files with 4 additions and 0 deletions
|
@ -179,6 +179,8 @@ package org.gestouch.core
|
||||||
_activeTouchesCount--;
|
_activeTouchesCount--;
|
||||||
|
|
||||||
_gesturesManager.onTouchEnd(touch);
|
_gesturesManager.onTouchEnd(touch);
|
||||||
|
|
||||||
|
touch.target = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -194,6 +196,8 @@ package org.gestouch.core
|
||||||
_activeTouchesCount--;
|
_activeTouchesCount--;
|
||||||
|
|
||||||
_gesturesManager.onTouchCancel(touch);
|
_gesturesManager.onTouchCancel(touch);
|
||||||
|
|
||||||
|
touch.target = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue