7168851: [macosx] Netbeans crashes in CImage.nativeCreateNSImageFromArray
authoranthony
Wed, 16 May 2012 14:28:12 +0400
changeset 12654 9c691a35d1da
parent 12653 07d5ca30e79e
child 12655 4edb87e1eb0b
7168851: [macosx] Netbeans crashes in CImage.nativeCreateNSImageFromArray Summary: Eliminate unnecessary -release call Reviewed-by: dcherepanov
jdk/src/macosx/native/sun/awt/CImage.m
--- a/jdk/src/macosx/native/sun/awt/CImage.m	Wed May 16 13:15:27 2012 +0400
+++ b/jdk/src/macosx/native/sun/awt/CImage.m	Wed May 16 14:28:12 2012 +0400
@@ -163,7 +163,6 @@
     if ([reps count]) {
         NSImage *nsImage = [[NSImage alloc] initWithSize:NSMakeSize(0, 0)];
         [nsImage addRepresentations: reps];
-        [reps release];
 
         if (nsImage != nil) {
             CFRetain(nsImage); // GC