summaryrefslogtreecommitdiff
path: root/vcl/source/edit/textdata.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-11-16 01:27:25 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-11-16 01:43:42 +0900
commit87dbf96874f223921722945ad4d7937f95d742c8 (patch)
tree48fb7fe7b48de51c677006ac72e706c84ac6acfa /vcl/source/edit/textdata.cxx
parent2c1555a5504162ec36704cc0156f3c0f2b0bc59b (diff)
Delete array
Change-Id: Ia02e936ace65e576f9df086d4608e514f3b0001e
Diffstat (limited to 'vcl/source/edit/textdata.cxx')
-rw-r--r--vcl/source/edit/textdata.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/edit/textdata.cxx b/vcl/source/edit/textdata.cxx
index a468327ecf22..f713947214d1 100644
--- a/vcl/source/edit/textdata.cxx
+++ b/vcl/source/edit/textdata.cxx
@@ -320,14 +320,14 @@ TEIMEInfos::~TEIMEInfos()
void TEIMEInfos::CopyAttribs( const sal_uInt16* pA, sal_uInt16 nL )
{
nLen = nL;
- delete pAttribs;
+ delete[] pAttribs;
pAttribs = new sal_uInt16[ nL ];
memcpy( pAttribs, pA, nL*sizeof(sal_uInt16) );
}
void TEIMEInfos::DestroyAttribs()
{
- delete pAttribs;
+ delete[] pAttribs;
pAttribs = NULL;
nLen = 0;
}