Project: Eclipse_Platform_UI
Bug 36526 ErrorDialog leaks a clipboard
Reported: 2003-04-15 14:18:30 | Status: closed fixed

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.

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ErrorDialog.java