src/macosx/native/sun/awt/AWTWindow.m

Print this page

        

@@ -348,11 +348,11 @@
 }
 
 - (void) dealloc {
 AWT_ASSERT_APPKIT_THREAD;
 
-    JNIEnv *env = [ThreadUtilities getJNIEnv];
+    JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
     [self.javaPlatformWindow setJObject:nil withEnv:env];
 
     self.nsWindow = nil;
     self.ownerWindow = nil;
     [super dealloc];