# HG changeset patch # User serb # Date 1474036086 -10800 # Node ID 9c22dbd69da3db6e47c53cd2db5827611910aca8 # Parent b3d2e317f78eb22dcf802ebeb60641dc107ebd5d 8165717: [macosx] Various memory leaks in jdk9 Reviewed-by: ant, ssadetsky diff -r b3d2e317f78e -r 9c22dbd69da3 jdk/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m --- a/jdk/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m Thu Sep 15 16:12:08 2016 +0530 +++ b/jdk/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m Fri Sep 16 17:28:06 2016 +0300 @@ -376,7 +376,6 @@ { void (^copy)() = [block copy]; NSInteger encode = (NSInteger) copy; - [copy retain]; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSEvent* event = [NSEvent otherEventWithType: NSApplicationDefined location: NSMakePoint(0,0)