if (shellHandle != 0) OS.XtDestroyWidget (shellHandle); shellHandle = 0;
if (shellHandle != 0) { int xDisplay = OS.XtDisplay(shellHandle); if (xDisplay != 0) { if (activeClipboard != null) { OS.XtDisownSelection(shellHandle, clipboardAtom, OS.CurrentTime); } if (activePrimaryClipboard != null) { OS.XtDisownSelection(shellHandle, primaryAtom, OS.CurrentTime); } } OS.XtDestroyWidget (shellHandle); shellHandle = 0; }
public void dispose () {	if (isDisposed()) return;	if (display.getThread() != Thread.currentThread()) DND.error(SWT.ERROR_THREAD_INVALID_ACCESS);	if (shellHandle != 0) OS.XtDestroyWidget (shellHandle);	shellHandle = 0;	display = null;}