GridLayout.cpp: use delete[] instead of delete. Fixes #9875.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
This commit is contained in:
parent
3b49d99436
commit
b781fcec00
@ -787,7 +787,7 @@ BGridLayout::_ResizeGrid(int32 columnCount, int32 rowCount)
|
||||
|
||||
// delete the old, respectively on error the partially created grid
|
||||
for (int32 i = 0; i < columnCount; i++)
|
||||
delete grid[i];
|
||||
delete[] grid[i];
|
||||
delete[] grid;
|
||||
|
||||
return success;
|
||||
|
Loading…
Reference in New Issue
Block a user