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
StringBuffer buffer,
		int nesting) {
		if (!status.matches(displayMask)) {
			return;
		}
		for (int i = 0; i < nesting; i++) {
			buffer.append(NESTING_INDENT); 
		}
		buffer.append(status.getMessage());
		buffer.append("\n"); 
		IStatus[] children = status.getChildren();
		for (int i = 0; i < children.length; i++) {
			populateCopyBuffer(children[i], buffer, nesting + 1);
		}
	}
	
	/**
	 * Copy the contents of the statuses to the clipboard.
	 */
	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()}
		);
	}
}