debuganalyzer: Fix double free. CID 992566

* RemoveRow frees row, thus the delete isn't
  needed.
This commit is contained in:
Alexander von Gluck IV 2013-06-24 15:22:37 -05:00
parent 27938cb64f
commit ea27e95f48

View File

@ -640,10 +640,8 @@ 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