Apache OpenOffice (AOO) Bugzilla – Issue 120735
Loading a document contains textfield objects, the para objects and editengine objects attached to it are not freed
Last modified: 2017-05-20 10:31:57 UTC
Created attachment 79189 [details] Sample odt file to show the memory leak The the attached sample files, you may observe the OutlinerParaObject objects created by below call stack are never freed. svxmi.dll!Outliner::CreateParaObject(unsigned short nStartPara=0x0000, unsigned short nCount=0x0001) Line 448 + 0x18 C++ swmi.dll!SwTextAPIEditSource::CreateText() Line 183 + 0x16 C++ > swmi.dll!SwXTextField::attachToRange(const com::sun::star::uno::Reference<com::sun::star::text::XTextRange> & xTextRange={...}) Line 1342 + 0x1d C++ And the object is set to SwPostItField object with this piece of code in api SwXTextField::attachToRange() (file writ\sw\source\core\unocore\unofield.cxx), ((SwPostItField*)pFld)->SetTextObject( m_pTextObject->CreateText() );
Created attachment 79191 [details] fix code patch The created object is only referred in SwPostItField.mpText. Need to delete it in SwPostItField dtor api.
"zhangjf" committed SVN revision 1380452 into trunk: #i120735#, the para object or editengine object attached to textfield object ...
Change to resolved state.