summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-03 03:34:50 +0200
committerKohei Yoshida <kohei.yoshida@suse.com>2011-08-08 15:57:15 -0400
commit087c000e0dbd777e8c6e514a4403d33d68b7fa38 (patch)
tree150e2b6ff89054fbd8b9d5cb8c93b92208384602
parent239974245d2440150db4bb2444f7d57b0bc54eb9 (diff)
use delete[] for arrays allocated with new[]
Signed-off-by: Kohei Yoshida <kohei.yoshida@suse.com>
-rw-r--r--sc/source/ui/miscdlgs/datafdlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/miscdlgs/datafdlg.cxx b/sc/source/ui/miscdlgs/datafdlg.cxx
index d8774f21a..9bec1a806 100644
--- a/sc/source/ui/miscdlgs/datafdlg.cxx
+++ b/sc/source/ui/miscdlgs/datafdlg.cxx
@@ -247,9 +247,9 @@ ScDataFormDlg::~ScDataFormDlg()
delete pFixedTexts[i];
}
if (pEdits)
- delete pEdits;
+ delete[] pEdits;
if (pFixedTexts)
- delete pFixedTexts;
+ delete[] pFixedTexts;
}
void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/)