Revert "debuganalyzer: Fix double free. CID 992566"
This reverts commit ea27e95f48.
* AnEvilYak pointed out that this was a false positive as
BObjectList can optionally delete on remove.
* I'll add a penny to the bitcoin bad commit jar :)
This commit is contained in:
@@ -640,8 +640,10 @@ Table::TableRowsRemoved(TableModel* model, int32 rowIndex, int32 count)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int32 i = rowIndex + count - 1; i >= rowIndex; i--) {
|
for (int32 i = rowIndex + count - 1; i >= rowIndex; i--) {
|
||||||
if (BRow* row = fRows.RemoveItemAt(i))
|
if (BRow* row = fRows.RemoveItemAt(i)) {
|
||||||
RemoveRow(row);
|
RemoveRow(row);
|
||||||
|
delete row;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// re-index the subsequent rows
|
// re-index the subsequent rows
|
||||||
|
|||||||
Reference in New Issue
Block a user