8284023: java.sun.awt.X11GraphicsDevice.getDoubleBufferVisuals() leaks XdbeScreenVisualInfo

Reviewed-by: prr, serb
This commit is contained in:
Zhengyu Gu 2022-04-06 12:50:43 +00:00
parent b9cc3bc1bf
commit ec205f68a8

View file

@ -1429,6 +1429,9 @@ Java_sun_awt_X11GraphicsDevice_getDoubleBufferVisuals(JNIEnv *env,
break;
}
}
AWT_LOCK();
XdbeFreeVisualInfo(visScreenInfo);
AWT_UNLOCK();
}
/*