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