Bug 9819 ImageDescriptorRegistry must empty hash map in dispose
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
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ImageDescriptorRegistry.java
/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
package org.eclipse.jdt.internal.ui.viewsupport;
import java.util.HashMap;
import java.util.Iterator;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.eclipse.jdt.internal.ui.util.SWTUtil;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.util.Assert;
/**
 * A registry that maps <code>ImageDescriptors</code> to <code>Image</code>.
 */
public class ImageDescriptorRegistry {
	private HashMap fRegistry= new HashMap(10);
	private Display fDisplay;