changeset 41387:9c22dbd69da3

8165717: [macosx] Various memory leaks in jdk9 Reviewed-by: ant, ssadetsky
author serb
date Fri, 16 Sep 2016 17:28:06 +0300
parents b3d2e317f78e
children 1a4a7fe92ac6
files jdk/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)