Bug 204687

Summary: [ImageSupport] GraphicsToGraphics2DAdaptor leaks SWT image resource
Product: [Modeling] GMF-Runtime Reporter: Linda Damus <ldamus>
Component: GeneralAssignee: Linda Damus <ldamus>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: ahunter.eclipse
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Linda Damus CLA 2007-09-26 10:14:56 EDT
Each time a GraphicsToGraphics2DAdaptor is instantiated, #createSWTGraphics instantiates a new SWT Image resource.  However, when the GraphicsToGraphics2DAdaptor is disposed, that image resource is not released.

The consequence is that when a client application instantiates and disposes many GraphicsToGraphics2DAdaptors, the client application will crash with the "No more handles" SWTError.
Comment 1 Linda Damus CLA 2007-09-26 10:59:48 EDT
Committed the fix to both HEAD and R2_0_maintenance streams.
Comment 2 Eclipse Webmaster CLA 2010-07-19 21:56:47 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime was the original product and component for this bug