comparison src/macosx/native/sun/awt/AWTView.m @ 8125:04612a52e7bd

8024779: [macosx] SwingNode crashes on exit Reviewed-by: anthony, ant
author pchelko
date Mon, 16 Sep 2013 19:38:32 +0400
parents 17cc8f13e4e7
children d72ca6dac444
comparison
equal deleted inserted replaced
14:5b1172a59fb2 15:85b822580dc7
124 - (void) dealloc { 124 - (void) dealloc {
125 AWT_ASSERT_APPKIT_THREAD; 125 AWT_ASSERT_APPKIT_THREAD;
126 126
127 self.cglLayer = nil; 127 self.cglLayer = nil;
128 128
129 JNIEnv *env = [ThreadUtilities getJNIEnv]; 129 JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
130 (*env)->DeleteGlobalRef(env, m_cPlatformView); 130 (*env)->DeleteGlobalRef(env, m_cPlatformView);
131 m_cPlatformView = NULL; 131 m_cPlatformView = NULL;
132 132
133 if (fInputMethodLOCKABLE != NULL) 133 if (fInputMethodLOCKABLE != NULL)
134 { 134 {