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:
Alexander von Gluck IV
2013-06-24 16:29:04 -05:00
parent ea27e95f48
commit 4dff02682c
+3 -1
View File
@@ -640,8 +640,10 @@ 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