Issue 98421

Summary: Memory and resource leak when closing presentation and drawing docs
Product: Impress Reporter: chris
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: eric.bachard, issues
Version: OOo 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 28996    

Description chris 2009-01-23 22:12:23 UTC
To reproduce:

1. Start xrestop
2. Start openoffice
3. Keep an eye on the resources used by openoffice
4. Open a drawing or presentation document
5. Close it again
6. Goto 3

There is an issue with X resources and memory usage. Over time OOo will use all
available system memory.

Things I have already found out about this:

- The problem also exists in OOo 2.4.
- The leak is due to the presentation document not being cleaned up when it is 
closed.
- The problem is not specific to the framework code: writer 
documents do not exhibit the same problem when closed in the same way
- The problem is common to both the presentation and drawing modules, and is 
therefore probably in the common sd code.
- The problem is reproducible using the GUI as above, or using API calls to open
documents. The method we tried was to create a frame and then use
loadComponentFromURL repeatedly on the same frame.
- The problem cannot be worked around by calling dispose() on the document
object after the frame has been reused.
Comment 1 eric.bachard 2009-01-24 06:49:13 UTC
Interesting issue. I had some doubts when working on add an eventListenr in sd for the remote, and I'd 
like to understand completly what happens. thanks for pointing this issue 
Comment 2 Olaf Felka 2009-01-24 10:01:21 UTC
reassigned
Comment 3 Marcus 2017-05-20 11:35:22 UTC
Reset assigne to the default "issues@openoffice.apache.org".