incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120735] New: Loading a document contains textfield objects, the para objects and editengine objects attached to it are not freed
Date Tue, 28 Aug 2012 07:14:07 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120735

          Priority: P3
            Bug ID: 120735
          Assignee: ooo-issues@incubator.apache.org
           Summary: Loading a document contains textfield objects, the
                    para objects and editengine objects attached to it are
                    not freed
          Severity: normal
        Issue Type: DEFECT
    Classification: Application
                OS: All
          Reporter: zhangjf@apache.org
          Hardware: All
            Status: CONFIRMED
           Version: AOO 3.4.0
         Component: code
           Product: word processor

Created attachment 79189
  --> https://issues.apache.org/ooo/attachment.cgi?id=79189&action=edit
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() );

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message