imageList.dispose ();
Display display = getDisplay (); display.releaseImageList (imageList);
public void removeAll () {	checkWidget ();	ignoreDeselect = ignoreSelect = true;	int result = OS.SendMessage (handle, OS.TVM_DELETEITEM, 0, OS.TVI_ROOT);	ignoreDeselect = ignoreSelect = false;	if (result == 0) error (SWT.ERROR_ITEM_NOT_REMOVED);	for (int i=0; i<items.length; i++) {		TreeItem item = items [i];		if (item != null && !item.isDisposed ()) {			item.releaseWidget ();			item.releaseHandle ();		}	}	if (imageList != null) {		OS.SendMessage (handle, OS.TVM_SETIMAGELIST, 0, 0);		imageList.dispose ();	}	imageList = null;	items = new TreeItem [4];	hAnchor = 0;}