for (int i=0; i<count; i++) { TabItem item = items [i]; if (!item.isDisposed ()) item.releaseResources ();
if (items != null) { for (int i=0; i<count; i++) { TabItem item = items [i]; if (item != null && !item.isDisposed ()) { item.releaseResources (); } }
void releaseWidget () {	int count = OS.SendMessage (handle, OS.TCM_GETITEMCOUNT, 0, 0);	for (int i=0; i<count; i++) {		TabItem item = items [i];		if (!item.isDisposed ()) item.releaseResources ();	}	items = null;	if (imageList != null) {		OS.SendMessage (handle, OS.TCM_SETIMAGELIST, 0, 0);		display.releaseImageList (imageList);	}	imageList = null;	super.releaseWidget ();}