From b781fcec00d2e12b154f63b0b95ba81af0092d00 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Mon, 15 Jul 2013 20:28:16 +0900 Subject: [PATCH] GridLayout.cpp: use delete[] instead of delete. Fixes #9875. Signed-off-by: Matt Madia --- src/kits/interface/GridLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/GridLayout.cpp b/src/kits/interface/GridLayout.cpp index 03577d67cf..2bd1aa7751 100644 --- a/src/kits/interface/GridLayout.cpp +++ b/src/kits/interface/GridLayout.cpp @@ -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;