changeset 9158:d08745a5cfab

7168851: [macosx] Netbeans crashes in CImage.nativeCreateNSImageFromArray Summary: Eliminate unnecessary -release call Reviewed-by: dcherepanov
author anthony
date Thu, 20 Apr 2017 21:25:01 +0100
parents b86ab588efc5
children 7a4e51757d72
files src/macosx/native/sun/awt/CImage.m
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/native/sun/awt/CImage.m	Thu Apr 20 21:23:52 2017 +0100
+++ b/src/macosx/native/sun/awt/CImage.m	Thu Apr 20 21:25:01 2017 +0100
@@ -156,7 +156,6 @@
     if ([reps count]) {
         NSImage *nsImage = [[[NSImage alloc] initWithSize:NSMakeSize(0, 0)] retain];
         [nsImage addRepresentations: reps];
-        [reps release];
         result = ptr_to_jlong(nsImage);
     }