Tracker: Fix memory leak

When items were removed from fFilteredPoseList as opposed to fPoseList, the
items were not automatically deleted and thus leaked. By setting the BObjectList
to automatically delete them on removal (by setting the deleteIfOwned paramete
to true) we avoid this leak.
This commit is contained in:
John Scipione 2015-02-26 17:53:54 -05:00
parent c8c5ac5107
commit de7aed2b56

View File

@ -215,7 +215,7 @@ BPoseView::BPoseView(Model* model, uint32 viewMode)
fActivePose(NULL),
fExtent(INT32_MAX, INT32_MAX, INT32_MIN, INT32_MIN),
fPoseList(new PoseList(40, true)),
fFilteredPoseList(new PoseList()),
fFilteredPoseList(new PoseList(20, true)),
fVSPoseList(new PoseList()),
fSelectionList(new PoseList()),
fMimeTypesInSelectionCache(20, true),