private void disposePreviewImage() { if (fPreviewLabel != null && fPreviewLabel.getImage() != null && !fPreviewLabel.getImage().isDisposed()) { fPreviewLabel.getImage().dispose(); } }
public void disposeLabelImage(Label label) { disposeRegion(label); Image image = label.getImage(); if (image != null) { label.setImage(null); image.dispose(); } }