Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 280073

Summary: Graph class leaks 5 Color objects
Product: [Tools] GEF Reporter: Randy Fredrick <rjfredrick>
Component: GEF-Legacy ZestAssignee: 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:

Description Randy Fredrick CLA 2009-06-12 08:59:57 EDT
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.
Comment 1 Ian Bull CLA 2010-03-15 00:21:57 EDT
Thanks for finding this. It's been fixed in head.
Comment 2 Randy Fredrick CLA 2010-03-15 12:22:52 EDT
(In reply to comment #1)
> Thanks for finding this. It's been fixed in head.

Glad I could contribute.