[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Mon Aug 8 12:56:41 PDT 2011
sc/source/ui/miscdlgs/datafdlg.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 087c000e0dbd777e8c6e514a4403d33d68b7fa38
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Wed Aug 3 03:34:50 2011 +0200
use delete[] for arrays allocated with new[]
Signed-off-by: Kohei Yoshida <kohei.yoshida at suse.com>
diff --git a/sc/source/ui/miscdlgs/datafdlg.cxx b/sc/source/ui/miscdlgs/datafdlg.cxx
index d8774f2..9bec1a8 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