Fix GetControl() function exception error
authorjaewon7.cho <jaewon7.cho@samsung.com>
Mon, 1 Apr 2013 12:50:31 +0000 (21:50 +0900)
committerjaewon7.cho <jaewon7.cho@samsung.com>
Mon, 1 Apr 2013 12:50:31 +0000 (21:50 +0900)
Change-Id: I15ffa312d8bcfd9e016ec0eaf40a799c0912dc34
Signed-off-by: jaewon7.cho <jaewon7.cho@samsung.com>
src/ui/FUi_ContainerImpl.cpp

index 84a3113..ae15e7a 100755 (executable)
@@ -321,7 +321,7 @@ _ContainerImpl::DeleteAllChildren(_ContainerImpl* pChild, bool detachSystemChild
 {
        ArrayList* pList = static_cast <ArrayList*>(pChild->GetChildrenPublic());
        int count = pList->GetCount();
-       for (int index = count; index >= 0; index--)
+       for (int index = count - 1; index >= 0; index--)
        {
                Control* pControl = static_cast <Control*>(pList->GetAt(index));
                if (pControl)