--- old/src/macosx/native/sun/awt/AWTView.m 2013-09-13 16:00:58.000000000 +0400 +++ new/src/macosx/native/sun/awt/AWTView.m 2013-09-13 16:00:58.000000000 +0400 @@ -126,7 +126,7 @@ self.cglLayer = nil; - JNIEnv *env = [ThreadUtilities getJNIEnv]; + JNIEnv *env = [ThreadUtilities getJNIEnvUncached]; (*env)->DeleteGlobalRef(env, m_cPlatformView); m_cPlatformView = NULL;