8024779: [macosx] SwingNode crashes on exit
Reviewed-by: anthony, ant
This commit is contained in:
parent
441fa0cc1d
commit
9d4a780ccd
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user