From: Francisco Santos Date: Fri, 14 Nov 2014 16:28:48 +0000 (+0000) Subject: Iterator is no longer valid after erase. X-Git-Tag: dali_1.0.18~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbe6f59063b94209d52d86b90f40dd619d4e5cd4;p=platform%2Fcore%2Fuifw%2Fdali-core.git Iterator is no longer valid after erase. Change-Id: I5655528f2787e53ce427c407d276671ae01051e5 --- diff --git a/dali/integration-api/events/touch-event-combiner.cpp b/dali/integration-api/events/touch-event-combiner.cpp index 7a3ddad..b864e43 100644 --- a/dali/integration-api/events/touch-event-combiner.cpp +++ b/dali/integration-api/events/touch-event-combiner.cpp @@ -185,7 +185,7 @@ TouchEventCombiner::EventDispatchType TouchEventCombiner::GetNextTouchEvent( con { if ( iter->point.deviceId == point.deviceId ) { - mHoveredPoints.erase( iter ); + iter = mHoveredPoints.erase( iter ); } } }