On Sat, 17 Oct 2026 14:45:19 GMT, Matthias Baesken <[email protected]> wrote:

>> src/java.desktop/unix/native/libawt_xawt/awt/awt_GraphicsEnv.c line 1156:
>> 
>>> 1154: 
>>> 1155:     AwtGraphicsConfigData *adata = NULL;
>>> 1156:     AwtScreenData *asd = &x11Screens[screen];
>> 
>> I do not understand how this changes anything ...
>
> If we use the 'real' object reference in the x11Screens array and not a local 
> variable like AwtScreenData asd, I think we should avoid the leak. Or do I 
> miss something?

I see it now.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/33405#discussion_r4317245973

Reply via email to