--- old/src/macosx/native/sun/awt/JavaComponentAccessibility.m 2014-07-10 16:56:10.000000000 +0400 +++ new/src/macosx/native/sun/awt/JavaComponentAccessibility.m 2014-07-10 16:56:09.000000000 +0400 @@ -1108,7 +1108,10 @@ JNIEnv *env = [ThreadUtilities getJNIEnv]; id value = nil; + NSWindow* hostWindow = [[self->fView window] retain]; jobject focused = JNFCallStaticObjectMethod(env, jm_getFocusOwner, fComponent); // AWT_THREADING Safe (AWTRunLoop) + [hostWindow release]; + if (focused != NULL) { if (JNFIsInstanceOf(env, focused, &sjc_Accessible)) { value = [JavaComponentAccessibility createWithAccessible:focused withEnv:env withView:fView];