| Summary: | Graph class leaks 5 Color objects | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Randy Fredrick <rjfredrick> |
| Component: | GEF-Legacy Zest | Assignee: | Ian Bull <irbull> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ahunter.eclipse, irbull, rjfredrick |
| Version: | 3.4 | ||
| Target Milestone: | 3.6.0 (Helios) M6 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Thanks for finding this. It's been fixed in head. (In reply to comment #1) > Thanks for finding this. It's been fixed in head. Glad I could contribute. |
Snippet: public void createPartControl(Composite parent) { viewer = new GraphViewer(parent, ZestStyles.None); ... } In the code snippet the GraphViewer creates a Graph instance. The Graph instance allocates 5 color objects during instance initialization and also in the constructor. Using SLeak the Color objects created during instance initialization seem to be leaked when reset in the constructor.