diff src/macosx/native/sun/awt/AWTView.m @ 8125:04612a52e7bd

8024779: [macosx] SwingNode crashes on exit Reviewed-by: anthony, ant
author pchelko
date Mon, 16 Sep 2013 19:38:32 +0400
parents 17cc8f13e4e7
children d72ca6dac444
line wrap: on
line diff
--- a/src/macosx/native/sun/awt/AWTView.m	Mon Sep 16 19:21:50 2013 +0400
+++ b/src/macosx/native/sun/awt/AWTView.m	Mon Sep 16 19:38:32 2013 +0400
@@ -126,7 +126,7 @@
 
     self.cglLayer = nil;
 
-    JNIEnv *env = [ThreadUtilities getJNIEnv];
+    JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
     (*env)->DeleteGlobalRef(env, m_cPlatformView);
     m_cPlatformView = NULL;