debuganalyzer: Fix double free. CID 992566
* RemoveRow frees row, thus the delete isn't needed.
This commit is contained in:
parent
27938cb64f
commit
ea27e95f48
@ -640,10 +640,8 @@ Table::TableRowsRemoved(TableModel* model, int32 rowIndex, int32 count)
|
||||
}
|
||||
|
||||
for (int32 i = rowIndex + count - 1; i >= rowIndex; i--) {
|
||||
if (BRow* row = fRows.RemoveItemAt(i)) {
|
||||
if (BRow* row = fRows.RemoveItemAt(i))
|
||||
RemoveRow(row);
|
||||
delete row;
|
||||
}
|
||||
}
|
||||
|
||||
// re-index the subsequent rows
|
||||
|
Loading…
Reference in New Issue
Block a user