Integrated: 8284956: Potential leak awtImageData/color_data when initializes X11GraphicsEnvironment

Zhengyu Gu zgu at openjdk.java.net
Fri May 13 13:15:02 UTC 2022


On Wed, 20 Apr 2022 13:48:19 GMT, Zhengyu Gu <zgu at 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 <zgu at 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



More information about the client-libs-dev mailing list