GridLayout.cpp: use delete[] instead of delete. Fixes #9875.

Signed-off-by: Matt Madia <mattmadia@gmail.com>
This commit is contained in:
Murai Takashi 2013-07-15 20:28:16 +09:00 committed by Matt Madia
parent 3b49d99436
commit b781fcec00

View File

@ -787,7 +787,7 @@ BGridLayout::_ResizeGrid(int32 columnCount, int32 rowCount)
// delete the old, respectively on error the partially created grid // delete the old, respectively on error the partially created grid
for (int32 i = 0; i < columnCount; i++) for (int32 i = 0; i < columnCount; i++)
delete grid[i]; delete[] grid[i];
delete[] grid; delete[] grid;
return success; return success;