Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
/ jdk18u Public archive

Commit 2725913

Browse files
committedMay 4, 2022
8284023: java.sun.awt.X11GraphicsDevice.getDoubleBufferVisuals() leaks XdbeScreenVisualInfo
Backport-of: ec205f68a883cef6b98f26a06baf675f7da26928
1 parent 8aae185 commit 2725913

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

Diff for: ‎src/java.desktop/unix/native/libawt_xawt/awt/awt_GraphicsEnv.c

+3
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,9 @@ Java_sun_awt_X11GraphicsDevice_getDoubleBufferVisuals(JNIEnv *env,
14291429
break;
14301430
}
14311431
}
1432+
AWT_LOCK();
1433+
XdbeFreeVisualInfo(visScreenInfo);
1434+
AWT_UNLOCK();
14321435
}
14331436

14341437
/*

0 commit comments

Comments
 (0)