Kaydet (Commit) dd127fae authored tarafından Jian Fang Zhang's avatar Jian Fang Zhang

#i120865#, Need to free the EditAttrib object explictly after removing it from CharAttribList

Found by: zhangjf 
Patch by: zhangjf
üst fbb7e8d8
...@@ -1817,6 +1817,7 @@ void EditDoc::InsertAttrib( ContentNode* pNode, sal_uInt16 nStart, sal_uInt16 nE ...@@ -1817,6 +1817,7 @@ void EditDoc::InsertAttrib( ContentNode* pNode, sal_uInt16 nStart, sal_uInt16 nE
// Attribut entfernen.... // Attribut entfernen....
pNode->GetCharAttribs().GetAttribs().Remove( pNode->GetCharAttribs().GetAttribs().Remove(
pNode->GetCharAttribs().GetAttribs().GetPos( pAttr ) ); pNode->GetCharAttribs().GetAttribs().GetPos( pAttr ) );
delete pAttr; // #i120865#, need free it explicitly
} }
// pruefen, ob ein 'gleiches' Attribut an der Stelle liegt. // pruefen, ob ein 'gleiches' Attribut an der Stelle liegt.
......
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