Bug 36526 ErrorDialog leaks a clipboard
Build: 2.1 The JFace ErrorDialog leaks a clipboard instance in the copyToClipboard method: private void copyToClipboard(){ StringBuffer statusBuffer = new StringBuffer(); populateCopyBuffer(status,statusBuffer,0); Clipboard clipboard = new Clipboard(list.getDisplay()); clipboard.setContents( new Object[] {statusBuffer.toString()}, new Transfer[] {TextTransfer.getInstance()} ); } clipboard.dispose() should be called at the end of this method.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ErrorDialog.java
* The Details button.
	 */
	private Button detailsButton;
	/**
	 * The title of the dialog.
	 */
	private String title;
	/**
	 * The SWT list control that displays the error details.
	 */
	private List list;
	/**
	 * Indicates whether the error details viewer is currently created.
	 */
	private boolean listCreated = false;
	/**
	 * Filter mask for determining which status items to display.
	 */
	private int displayMask = 0xFFFF;
	/** 
	 * The main status object.
	 */
	private IStatus status;
	/**
	 * List of the main error object's detailed errors
	 * (element type: <code>IStatus</code>).
	 */
	private java.util.List statusList;
	/**
	 * Creates an error dialog.