Actions
Bug #911
closedWAbstractItemView::setModel(WAbstractItemModel *model) memory leak
Start date:
07/21/2011
Due date:
% Done:
0%
Estimated time:
Description
WAbstractItemView::setModel(WAbstractItemModel *model)
has a memory leak
in
WItemSelectionModel *oldSelectionModel = selectionModel_;
selectionModel_ = new WItemSelectionModel(model, this);
selectionModel_setSelectionBehavior(oldSelectionModel>selectionBehavior());
as oldSelectionModel is not deleted
Updated by Koen Deforche over 13 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.1.11
Hey,
It isn't actually a memory leak in the sense that because of WObject ownership rules, the old selection model will be deleted together with the itemview. But the old selection model can be deleted right away in this case. I've fixed this in my git copy.
Regards,
koen
Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed
Resolved in Wt 3.1.11
Actions