fix direct delete touch object without use release crash bug;

This commit is contained in:
bmanGH 2013-10-07 00:01:56 +08:00
parent 97315900b0
commit 072c4503c3
1 changed files with 2 additions and 2 deletions

View File

@ -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();
} }
} }