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;
|
self.cglLayer = nil;
|
||||||
|
|
||||||
JNIEnv *env = [ThreadUtilities getJNIEnv];
|
JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
|
||||||
(*env)->DeleteGlobalRef(env, m_cPlatformView);
|
(*env)->DeleteGlobalRef(env, m_cPlatformView);
|
||||||
m_cPlatformView = NULL;
|
m_cPlatformView = NULL;
|
||||||
|
|
||||||
|
@ -350,7 +350,7 @@ AWT_ASSERT_APPKIT_THREAD;
|
|||||||
- (void) dealloc {
|
- (void) dealloc {
|
||||||
AWT_ASSERT_APPKIT_THREAD;
|
AWT_ASSERT_APPKIT_THREAD;
|
||||||
|
|
||||||
JNIEnv *env = [ThreadUtilities getJNIEnv];
|
JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
|
||||||
[self.javaPlatformWindow setJObject:nil withEnv:env];
|
[self.javaPlatformWindow setJObject:nil withEnv:env];
|
||||||
|
|
||||||
self.nsWindow = nil;
|
self.nsWindow = nil;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user