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@lists.freedesktop.org
Reporter: ipla...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs