[Tizen] Fix layout group crash 94/181494/1
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 14 Jun 2018 08:13:14 +0000 (17:13 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 14 Jun 2018 08:13:27 +0000 (17:13 +0900)
Change-Id: I6c6574794b2a8eab30fb9910426dca665f94b9a1

dali-toolkit/devel-api/layouting/layout-group-impl.cpp

index 10bfe2d..d9ff6ff 100644 (file)
@@ -122,7 +122,7 @@ void LayoutGroup::Remove( LayoutItem& child )
 
 void LayoutGroup::RemoveAll()
 {
-  for( auto iter = mImpl->mChildren.begin() ; iter != mImpl->mChildren.end() ; ++iter )
+  for( auto iter = mImpl->mChildren.begin() ; iter != mImpl->mChildren.end() ; )
   {
     OnChildRemove( *iter->child.Get() );
     iter = mImpl->mChildren.erase(iter);