diff --git a/src/kits/tracker/PoseViewScripting.cpp b/src/kits/tracker/PoseViewScripting.cpp index 41781bb630..e6619fad95 100644 --- a/src/kits/tracker/PoseViewScripting.cpp +++ b/src/kits/tracker/PoseViewScripting.cpp @@ -466,7 +466,7 @@ BPoseView::DeleteProperty(BMessage* specifier, int32 form, } else Delete(entryList, false, settings.AskBeforeDeleteFile()); } else { - for (int i = 0; i < entryList->CountItems(); i++) + for (int i = entryList->CountItems() - 1; i >= 0; i--) delete entryList->ItemAt(i); delete entryList; }