Apache OpenOffice (AOO) Bugzilla – Issue 120865
Part of EditAttrib objects are not released after removing from Character attributes list
Last modified: 2013-07-12 10:54:28 UTC
In api EditDoc::InsertAttrib(), some of EditCharAttrib objects are not freed after removing from CharAttribs(), void EditDoc::InsertAttrib( ContentNode* pNode, USHORT nStart, USHORT nEnd, const SfxPoolItem& rPoolItem ) { if ( nStart != nEnd ) { InsertAttribInSelection( pNode, nStart, nEnd, rPoolItem ); } else { // Pruefen, ob schon ein neues Attribut mit der WhichId an der Stelle: EditCharAttrib* pAttr = pNode->GetCharAttribs().FindEmptyAttrib( rPoolItem.Which(), nStart ); if ( pAttr ) { // Attribut entfernen.... pNode->GetCharAttribs().GetAttribs().Remove( pNode->GetCharAttribs().GetAttribs().GetPos( pAttr ) ); // pAttr <--- need free here } ... }
Created attachment 79368 [details] editdoc.cxx.patch Need to free the EditAttrib object explictly after removing it from CharAttribList.
"zhangjf" committed SVN revision 1382643 into trunk: #i120865#, Need to free the EditAttrib object explictly after removing it fro...
Change to resolved state.