From 9a163c46f0e1d8db170a0892f416d696d0721ba2 Mon Sep 17 00:00:00 2001 From: duke Date: Thu, 20 Jun 2024 08:09:50 +0000 Subject: [PATCH] Backport 205cfb84968fe93cbfe7d509e1e7d051ed05f97c --- src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.c b/src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.c index bc1a2848aa1..9d1584ad67c 100644 --- a/src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.c +++ b/src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.c @@ -1298,6 +1298,7 @@ void X11SD_DisposeXImage(XImage * image) { #ifdef MITSHM if (image->obdata != NULL) { X11SD_DropSharedSegment((XShmSegmentInfo*)image->obdata); + free(image->obdata); image->obdata = NULL; } #endif /* MITSHM */