8165717: [macosx] Various memory leaks in jdk9
authorserb
Fri, 16 Sep 2016 17:28:06 +0300
changeset 41387 9c22dbd69da3
parent 41386 b3d2e317f78e
child 41388 1a4a7fe92ac6
8165717: [macosx] Various memory leaks in jdk9 Reviewed-by: ant, ssadetsky
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)