8024779: [macosx] SwingNode crashes on exit

Reviewed-by: anthony, ant
This commit is contained in:
Petr Pchelko 2013-09-16 19:38:32 +04:00
parent 441fa0cc1d
commit 9d4a780ccd
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ AWT_ASSERT_APPKIT_THREAD;
self.cglLayer = nil;
JNIEnv *env = [ThreadUtilities getJNIEnv];
JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
(*env)->DeleteGlobalRef(env, m_cPlatformView);
m_cPlatformView = NULL;

View File

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