Skip to content

Commit

Permalink
8284023: java.sun.awt.X11GraphicsDevice.getDoubleBufferVisuals() leak…
Browse files Browse the repository at this point in the history
…s XdbeScreenVisualInfo

Reviewed-by: prr, serb
  • Loading branch information
zhengyu123 committed Apr 6, 2022
1 parent b9cc3bc commit ec205f6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,9 @@ Java_sun_awt_X11GraphicsDevice_getDoubleBufferVisuals(JNIEnv *env,
break;
}
}
AWT_LOCK();
XdbeFreeVisualInfo(visScreenInfo);
AWT_UNLOCK();
}

/*
Expand Down

0 comments on commit ec205f6

Please sign in to comment.