Bug 9819

Summary: ImageDescriptorRegistry must empty hash map in dispose
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: UIAssignee: Dirk Baeumer <dirk_baeumer>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: darin.eclipse
Version: 2.0   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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