Bug 49689 - smart caret's image is being leaked
Summary: smart caret's image is being leaked
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P3 major (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2004-01-08 09:52 EST by Grant Gayed CLA
Modified: 2004-01-09 12:49 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2004-01-08 09:52:08 EST
M6

An image is leaked every time a java editor is opened and closed.  I've traced 
it to AbstractTextEditor.createSmartInsertModeCaret(StyledText).  The leak goes 
away if I comment out this method's middle 5 lines, so this Image is not being 
disposed later.
Comment 1 Dani Megert CLA 2004-01-09 12:49:23 EST
Actually it leaks the image which is set in the caret because the caret is
already disposed it did not get the image and dispose it.

Fixed the code and improved it so that the corresponding image is created on demand.

Available in builds > 20040109