7018387: Xrender pipeline may leak GC's
authorceisserer
Wed, 09 Feb 2011 14:34:04 -0800
changeset 8354 3189b5e18f80
parent 8353 2834083cdb2c
child 8355 6b58fe58e767
7018387: Xrender pipeline may leak GC's Reviewed-by: prr
jdk/src/solaris/classes/sun/java2d/xr/XRSurfaceData.java
--- a/jdk/src/solaris/classes/sun/java2d/xr/XRSurfaceData.java	Wed Feb 09 22:24:42 2011 +0300
+++ b/jdk/src/solaris/classes/sun/java2d/xr/XRSurfaceData.java	Wed Feb 09 14:34:04 2011 -0800
@@ -479,8 +479,7 @@
         if (xrpipe == null) {
             try {
                 SunToolkit.awtLock();
-                xgc = renderQueue.createGC(xid); // TODO: GC leak? where to
-                // clean up?
+                xgc = XCreateGC(getNativeOps());
 
                 xrpipe = new XRRenderer(maskBuffer.getMaskBuffer());
                 xrtxpipe = new PixelToShapeConverter(xrpipe);