Actions
Bug #660
closedRead after delete in WAbstractItemView
Start date:
12/30/2010
Due date:
% Done:
0%
Estimated time:
Description
Valgrind snippit:
Invalid read of size 8
at 0x5621199: Wt::WAbstractItemView::saveEditedValue (WAbstractItemView.C:1311)
by 0x562134A: Wt::WAbstractItemView::closeEditor (WAbstractItemView.C:1157)
Address 0x11e57db8 is 56 bytes inside a block of size 80 free'd
by 0x562132E: Wt::WAbstractItemView::closeEditor (???)
Solution:
The erase of an item in "editedItems_" destructs "editor". 'saveEditedValue' must then be called before erasure.
Attached: patch
Files
Updated by Koen Deforche about 13 years ago
- Status changed from New to InProgress
Hey Thomas,
We had a patch recently which actually is the opposite of your patch. I believe the right solution is to change:
Editor& editor = i->second;
to:
Editor editor = i->second;
That should solve the error for you ?
Regards,
koen
Updated by Koen Deforche about 13 years ago
- Status changed from InProgress to Resolved
- Assignee set to Koen Deforche
Changed as proposed in git.
Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed
Actions