From 87dbf96874f223921722945ad4d7937f95d742c8 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Fri, 16 Nov 2012 01:27:25 +0900 Subject: Delete array Change-Id: Ia02e936ace65e576f9df086d4608e514f3b0001e --- vcl/source/edit/textdata.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/source/edit/textdata.cxx') 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; } -- cgit