changeset 8538:e4b10d144476

8024779: [macosx] SwingNode crashes on exit Reviewed-by: anthony, ant
author pchelko
date Mon, 16 Sep 2013 19:38:32 +0400
parents b3dfb922d23a
children d03044c0fe96
files src/macosx/native/sun/awt/AWTView.m src/macosx/native/sun/awt/AWTWindow.m
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/native/sun/awt/AWTView.m	Fri Oct 28 03:35:41 2016 +0100
+++ b/src/macosx/native/sun/awt/AWTView.m	Mon Sep 16 19:38:32 2013 +0400
@@ -129,7 +129,7 @@
 
     self.cglLayer = nil;
 
-    JNIEnv *env = [ThreadUtilities getJNIEnv];
+    JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
     (*env)->DeleteGlobalRef(env, m_cPlatformView);
     m_cPlatformView = NULL;
 
--- a/src/macosx/native/sun/awt/AWTWindow.m	Fri Oct 28 03:35:41 2016 +0100
+++ b/src/macosx/native/sun/awt/AWTWindow.m	Mon Sep 16 19:38:32 2013 +0400
@@ -414,7 +414,7 @@
 - (void) dealloc {
 AWT_ASSERT_APPKIT_THREAD;
 
-    JNIEnv *env = [ThreadUtilities getJNIEnv];
+    JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
     [self.javaPlatformWindow setJObject:nil withEnv:env];
     self.growBoxWindow = nil;