summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2002-07-17 09:56:34 +0000
committerMalte Timmermann <mt@openoffice.org>2002-07-17 09:56:34 +0000
commit6e1b61cc7e4f16b9049ddc9bbdd0a2472538c896 (patch)
tree6e81cc4beb7fe438af78153ef3ca6fa3ec50f177 /vcl/source
parentbeab6b32475ce546090cbb7121be5a6c1cb423c5 (diff)
#90353# operator delete[]
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/edit.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 92c510c1582b..6c4d74982f31 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: edit.cxx,v $
*
- * $Revision: 1.40 $
+ * $Revision: 1.41 $
*
- * last change: $Author: ssa $ $Date: 2002-07-03 10:36:00 $
+ * last change: $Author: mt $ $Date: 2002-07-17 10:56:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -254,7 +254,7 @@ Impl_IMEInfos::Impl_IMEInfos( xub_StrLen nP, const String& rOldTextAfterStartPos
Impl_IMEInfos::~Impl_IMEInfos()
{
- delete pAttribs;
+ delete[] pAttribs;
}
// -----------------------------------------------------------------------
@@ -262,7 +262,7 @@ Impl_IMEInfos::~Impl_IMEInfos()
void Impl_IMEInfos::CopyAttribs( const xub_StrLen* pA, xub_StrLen nL )
{
nLen = nL;
- delete pAttribs;
+ delete[] pAttribs;
pAttribs = new USHORT[ nL ];
rtl_copyMemory( pAttribs, pA, nL*sizeof(USHORT) );
}
@@ -271,7 +271,7 @@ void Impl_IMEInfos::CopyAttribs( const xub_StrLen* pA, xub_StrLen nL )
void Impl_IMEInfos::DestroyAttribs()
{
- delete pAttribs;
+ delete[] pAttribs;
pAttribs = NULL;
nLen = 0;
}