Kaydet (Commit) b8591e59 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

coverity: fix mismatch between new[] and delete

Change-Id: I33b2b8ffd1a6ba539346ca19f6a34bc7f1c61e3d
üst e2b2ffcc
...@@ -231,7 +231,7 @@ void EscherPropertyContainer::AddOpt( sal_uInt16 nPropID, sal_Bool bBlib, sal_uI ...@@ -231,7 +231,7 @@ void EscherPropertyContainer::AddOpt( sal_uInt16 nPropID, sal_Bool bBlib, sal_uI
{ {
pTemp[ i ] = pSortStruct[ i ]; pTemp[ i ] = pSortStruct[ i ];
} }
delete pSortStruct; delete[] pSortStruct;
pSortStruct = pTemp; pSortStruct = pTemp;
} }
pSortStruct[ nSortCount ].nPropId = nPropID; // insert property pSortStruct[ nSortCount ].nPropId = nPropID; // insert property
......
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