Avoid use after free in RowColumnManager.cpp
Fixes CID 10862
This commit is contained in:
@@ -69,7 +69,7 @@ RowColumnManager::RemoveArea(Area* area)
|
||||
if (row->fAreas.CountItems() == 0) {
|
||||
fRows.RemoveItem(row);
|
||||
delete row;
|
||||
}
|
||||
} else
|
||||
_UpdateConstraints(row);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ RowColumnManager::RemoveArea(Area* area)
|
||||
if (column->fAreas.CountItems() == 0) {
|
||||
fColumns.RemoveItem(column);
|
||||
delete column;
|
||||
}
|
||||
} else
|
||||
_UpdateConstraints(column);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user