Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Memory leak with extension's Options page | ||
---|---|---|---|
Product: | General | Reporter: | Ariel Constenla-Haile <arielch> |
Component: | code | Assignee: | Ariel Constenla-Haile <arielch> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | Normal | ||
Priority: | P3 | CC: | oliver.brinzing |
Version: | 3.3.0 or older (OOo) | ||
Target Milestone: | 4.2.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Latest Confirmation in: | 4.1.0-dev |
Developer Difficulty: | --- |
Description
Ariel Constenla-Haile
2014-04-07 23:00:37 UTC
The extension's event handler is kept alive by the dlgprov::DialogEventsAttacherImpl and its dlgprov::DialogUnoScriptListenerImpl holding a reference to it. These in turn are kept alive because they are listening at the toolkit controls. The toolkit controls are in turn kept alive because the one that creates the container window never disposes it. Disposing m_xPage in ExtensionsTabPage::~ExtensionsTabPage() fixes these memory leaks. "arielch" committed SVN revision 1585624 into trunk: i124623 - Dispose extension's Options page to avoid memory leaks Fixed with commit from comment 2. Verified running AOO under valgrind. . |