Kaydet (Commit) 87dbf968 authored tarafından Takeshi Abe's avatar Takeshi Abe

Delete array

Change-Id: Ia02e936ace65e576f9df086d4608e514f3b0001e
üst 2c1555a5
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment