* CID-1742: delete SortArray when we are done using it
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38185 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1706,6 +1706,7 @@ BList* ColumnListView::SortItemsInThisLevel(int32 OriginalListStartIndex)
|
|||||||
SortListArray(SortArray,ItemsInThisLevel);
|
SortListArray(SortArray,ItemsInThisLevel);
|
||||||
for(Counter = 0; Counter < ItemsInThisLevel; Counter++)
|
for(Counter = 0; Counter < ItemsInThisLevel; Counter++)
|
||||||
ThisLevelItems->AddItem(SortArray[Counter]);
|
ThisLevelItems->AddItem(SortArray[Counter]);
|
||||||
|
delete [] SortArray;
|
||||||
return ThisLevelItems;
|
return ThisLevelItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user