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
* @see org.eclipse.core.runtime.IStatus#matches(int)
	 */
	public static int openError(
		Shell parentShell,
		String title,
		String message,
		IStatus status,
		int displayMask) {
		ErrorDialog dialog =
			new ErrorDialog(parentShell, title, message, status, displayMask);
		return dialog.open();
	}
	/**
	 * Populates the list using this error dialog's status object.
	 * This walks the child stati of the status object and
	 * displays them in a list. The format for each entry is
	 *		status_path : status_message
	 * If the status's path was null then it (and the colon)
	 * are omitted.
	 */
	private void populateList(List list) {
		Iterator enum = statusList.iterator();
		while (enum.hasNext()) {
			IStatus childStatus = (IStatus) enum.next();
			populateList(list, childStatus, 0);
		}
	}
	private void populateList(List list, IStatus status, int nesting) {
		if (!status.matches(displayMask)) {
			return;