[Libreoffice-commits] .: sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Tue Aug 2 18:38:32 PDT 2011
sc/source/ui/miscdlgs/datafdlg.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 41f8f6d3503e91f23a6d58cbab5ae314f663aab9
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Wed Aug 3 03:34:50 2011 +0200
use delete[] for arrays allocated with new[]
diff --git a/sc/source/ui/miscdlgs/datafdlg.cxx b/sc/source/ui/miscdlgs/datafdlg.cxx
index a93c4f5..fda275b 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*/)
More information about the Libreoffice-commits
mailing list