Tracker: Fix use after free
CID510586
This commit is contained in:
parent
1933335b06
commit
5969c5d779
@ -8752,9 +8752,10 @@ BPoseView::AddRemovePoseFromSelection(BPose* pose, int32 index, bool select)
|
||||
if (select)
|
||||
fSelectionList->AddItem(pose);
|
||||
else {
|
||||
fSelectionList->RemoveItem(pose);
|
||||
fSelectionList->RemoveItem(pose, false);
|
||||
if (fSelectionPivotPose == pose)
|
||||
fSelectionPivotPose = NULL;
|
||||
|
||||
if (fRealPivotPose == pose)
|
||||
fRealPivotPose = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user