| Summary: | Possible Resource leaks in Graphiti | ||
|---|---|---|---|
| Product: | [Modeling] Graphiti | Reporter: | Patrick Talbot <ptalbot> |
| Component: | Core | Assignee: | Project Inbox <graphiti-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | matthias.gorning, michael.wenz |
| Version: | 0.8.0 | Flags: | michael.wenz:
juno+
|
| Target Milestone: | 0.9.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | Juno M7 Theme_bugs | ||
|
Description
Patrick Talbot
I did a quick reference check for the constructors of SWT Font and found 2 ambigious usages in Tooltip and DataTypeTransformation. Needs a closer look. I checked the usages of SWT Font and Image within the Graphiti framework and indeed found 2 issues with not released handles: - An image was not released in the SVG export (this is minor and should not cause this issue) - Fonts used for the tooltips on the context button pads were not released again when the pad disappeared. This could cause the issues you noticed when working on large diagrams GDIView showed an increase in the font handles before the fix, now the numbers are constant after a startup phase. Changes are checked-in and pushed to head for Graphiti 0.9.0: commit 4a76009ff9dfbb4b33a4526e81f0078841c49356 Author: mwenz <michael.wenz@sap.com> 2012-04-11 14:48:47 Committer: mwenz <michael.wenz@sap.com> 2012-04-11 15:20:16 Parent: 4203e4eab7fae63b217175bffb4866c7012ea660 (Bug 373298 - Fixed font resource leak with context button pad tooltip fonts) Branches: origin/master, master commit 4203e4eab7fae63b217175bffb4866c7012ea660 Author: mwenz <michael.wenz@sap.com> 2012-04-11 14:04:30 Committer: mwenz <michael.wenz@sap.com> 2012-04-11 15:20:15 Parent: 41bf531bd9869c3f175e29db96155035fa498a1e (Bug 368124 - ConnectionDecorator with Text causes problems) Child: 4a76009ff9dfbb4b33a4526e81f0078841c49356 (Bug 373298 - Fixed image resource leak in SVG export and cleaned up around unused image creation without dispose) Branches: origin/master, master That's great news! I had found some images not properly disposed in my own code as well but I'm glad you've been able to fix any leak in the framework as well. Thanks for the hard work! Part of Graphiti 0.9.0 (Eclipse Juno) |