Tracker: Fix use-after-free in info window attribute view dtor.
The model was owned by the info window and is gone at the point where the AttributeView is destroyed. Since the extra check whether the model is a symlink isn't really needed at all, I opted to just remove it instead of destroying the AttributeView sooner or unsetting its model.
This commit is contained in:
parent
359d64ed66
commit
859686a51c
|
@ -990,7 +990,7 @@ AttributeView::~AttributeView()
|
|||
if (fDescWindow->Lock())
|
||||
fDescWindow->Quit();
|
||||
|
||||
if (fModel->IsSymLink() && fIconModel != fModel)
|
||||
if (fIconModel != fModel)
|
||||
delete fIconModel;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue