[Libreoffice-commits] .: editeng/source
David Tardon
dtardon at kemper.freedesktop.org
Wed Oct 20 03:48:57 PDT 2010
editeng/source/editeng/impedit5.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 095a86394e4a0ebc956d6c1742b2f5a9ed7676ab
Author: David Tardon <dtardon at redhat.com>
Date: Wed Oct 20 12:48:41 2010 +0200
fix delete/delete[] mismatch
diff --git a/editeng/source/editeng/impedit5.cxx b/editeng/source/editeng/impedit5.cxx
index 77a26b0..8709b19 100644
--- a/editeng/source/editeng/impedit5.cxx
+++ b/editeng/source/editeng/impedit5.cxx
@@ -899,7 +899,7 @@ ImplIMEInfos::~ImplIMEInfos()
void ImplIMEInfos::CopyAttribs( const USHORT* pA, USHORT nL )
{
nLen = nL;
- delete pAttribs;
+ delete[] pAttribs;
pAttribs = new USHORT[ nL ];
memcpy( pAttribs, pA, nL*sizeof(USHORT) );
}
More information about the Libreoffice-commits
mailing list