Bug 204687 - [ImageSupport] GraphicsToGraphics2DAdaptor leaks SWT image resource
Summary: [ImageSupport] GraphicsToGraphics2DAdaptor leaks SWT image resource
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 major
Target Milestone: 2.0.1   Edit
Assignee: Linda Damus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-26 10:14 EDT by Linda Damus CLA
Modified: 2010-07-19 21:56 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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