--- old/src/macosx/classes/sun/java2d/opengl/CGLLayer.java 2012-02-29 16:21:42.194090800 +0400 +++ new/src/macosx/classes/sun/java2d/opengl/CGLLayer.java 2012-02-29 16:21:41.816069100 +0400 @@ -37,7 +37,7 @@ import java.awt.GraphicsConfiguration; import java.awt.Transparency; -public class CGLLayer extends CFRetainedResource { +public final class CGLLayer extends CFRetainedResource { private native long nativeCreateLayer(); @@ -118,6 +118,7 @@ // break the connection between the layer and the buffer validate(null); super.dispose(); + peer = null; } // ----------------------------------------------------------------------