Skip to content

Commit d05d73d

Browse files
committed
[gtk] Destroy cached image at sizee handle
This commit ensures the cleanup of the image handle cached by size on destruction of the Image.
1 parent 0427abd commit d05d73d

File tree

1 file changed

+1
-0
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics

1 file changed

+1
-0
lines changed

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,7 @@ void destroy() {
928928
if (surface != 0) Cairo.cairo_surface_destroy(surface);
929929
surface = mask = 0;
930930
memGC = null;
931+
cachedImageAtSize.destroy();
931932
}
932933

933934
private CachedImageAtSize cachedImageAtSize = new CachedImageAtSize();

0 commit comments

Comments
 (0)