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:
parent
c8c5ac5107
commit
de7aed2b56
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user