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