提交 d5114ebd 编写于 作者: P pchelko

8024779: [macosx] SwingNode crashes on exit

Reviewed-by: anthony, ant
上级 3a38e6c9
...@@ -126,7 +126,7 @@ AWT_ASSERT_APPKIT_THREAD; ...@@ -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; ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册