On Wed, 20 Apr 2022 13:48:19 GMT, Zhengyu Gu <z...@openjdk.org> wrote:
> During initializing native data of `X11GraphicsEnvironment`, a single > `AwtGraphicsConfigData` is used/reused, not only failed cases, but also > succeeded cases. So `AwtGraphicsConfigData` internal states need to be > cleanup properly to avoid memory leaks. > > Test: > - [x] jdk_awt This pull request has now been integrated. Changeset: cbe7e7bd Author: Zhengyu Gu <z...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/cbe7e7bd7f7e7ea9f7221ef206917c58baff7696 Stats: 42 lines in 1 file changed: 31 ins; 4 del; 7 mod 8284956: Potential leak awtImageData/color_data when initializes X11GraphicsEnvironment Reviewed-by: prr, shade ------------- PR: https://git.openjdk.java.net/jdk/pull/8317