mirror of https://github.com/axmolengine/axmol.git
fix direct delete touch object without use release crash bug;
This commit is contained in:
parent
97315900b0
commit
072c4503c3
|
@ -351,8 +351,8 @@ void EGLViewProtocol::handleTouchesOfEndOrCancel(EventTouch::EventCode eventCode
|
||||||
|
|
||||||
for (auto& touch : touchEvent._touches)
|
for (auto& touch : touchEvent._touches)
|
||||||
{
|
{
|
||||||
// delete the touch object.
|
// release the touch object.
|
||||||
delete touch;
|
touch->release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue