SvxEditModulesDlg::CreateEntry(rtl::OUString&, unsigned short) leaks memory
Steps to Reproduce:
1. Start the Instruments
2. Choose Memory Leak profile tool
3. Select LibreOffice.app in instdir as target process
4. Click on the record button, LODev is started by the profiling tool
5. Wait for the StartCenter to load.
6. Go to LibreOffceDev -> Preferences
7. Open LibreOffceDev ->Writing Aids
8. Writing add -> Edit
9. Close dialog
10. Close preference dialog
11. Stop recording.
12. Analyse the profile trace.
Memory leak in SvxEditModulesDlg::CreateEntry(rtl::OUString&, unsigned short)
User Profile Reset: No
Build ID: e970395c692a5c315914ddf5b43cf01e590345ff
CPU threads: 4; OS: Mac OS X 10.12.4; UI render: default;
Locale: en-US (en_US.UTF-8); Calc: group
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Created attachment 136245 [details]
BT & Few screenshots
I submitted a patch for review, see https://gerrit.libreoffice.org/#/c/42307/
*** Bug 112394 has been marked as a duplicate of this bug. ***
Julien Nabet committed a patch related to this issue.
It has been pushed to "master":
tdf#112392: avoid leak in SvxEditModulesDlg (cui)
It will be available in 6.0.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Waiting for your feedback before cherry-picking the patch on 5.4
No repro with:
Build ID: e038dfdf05096edc0e9c38c9a686b5d23ba39352
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default;
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2017-09-14_23:35:41
Locale: nl-NL (nl_NL.UTF-8); Calc: group