[Libreoffice-bugs] [Bug 112027] New: SfxCommonTemplateDialog_Impl::FillTreeBox() leaks memory

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 25 14:06:58 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=112027

            Bug ID: 112027
           Summary: SfxCommonTemplateDialog_Impl::FillTreeBox() leaks
                    memory
           Product: LibreOffice
           Version: 6.0.0.0.alpha0+ Master
          Hardware: x86-64 (AMD64)
                OS: Mac OS X (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: framework
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: iplaw67 at tuta.io

Description:
SfxCommonTemplateDialog_Impl::FillTreeBox() retains memory allocations
indefinitely instead of releasing causing memory consumption to increase. An
example of where this occurs in the UI is the Styles deck.

Steps to Reproduce:
1. Open Writer
2. Open the styles deck
3. Right click the style and click modify -> it's leaking at different places
4. Press Cancel and repeat step 3 (again leaking)

Actual Results:  
Memory leak through non-released memory

Expected Results:
Shouldn't leak


Reproducible: Always

User Profile Reset: No

Additional Info:
The problematic code as indicated by Instruments.app memory profiler appears to
lie in templdlg.cxx at lines 1028-1033 :

            StyleTree_Impl* pNew = new StyleTree_Impl(pStyle->GetName(),
pStyle->GetParent());
            aArr.push_back(pNew);
            pStyle = pStyleSheetPool->Next();
        }

        MakeTree_Impl(aArr);


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:54.0)
Gecko/20100101 Firefox/54.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170825/f580f7b0/attachment.html>


More information about the Libreoffice-bugs mailing list