Bug 9819 - ImageDescriptorRegistry must empty hash map in dispose
Summary: ImageDescriptorRegistry must empty hash map in dispose
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Dirk Baeumer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-14 10:18 EST by Dirk Baeumer CLA
Modified: 2002-02-15 08:57 EST (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 Dirk Baeumer CLA 2002-02-14 10:18:48 EST
Current code is:

public void dispose() {
    for (Iterator iter= fRegistry.values().iterator(); iter.hasNext(); ) {
	Image image= (Image)iter.next();
	image.dispose();
    }
}

Statement fRegistry.clear() missing after dispose

Current implementation doesn't cause harm since calling dispose on a dispose 
image is ignored.

Must be fixed after M3
Comment 1 Dirk Baeumer CLA 2002-02-15 05:15:26 EST
Darin, you should do the same with the copy in debug UI.



Fixed for JDT UI in build > 20020214