changeset 12654:9c691a35d1da

7168851: [macosx] Netbeans crashes in CImage.nativeCreateNSImageFromArray Summary: Eliminate unnecessary -release call Reviewed-by: dcherepanov
author anthony
date Wed, 16 May 2012 14:28:12 +0400
parents 07d5ca30e79e
children 4edb87e1eb0b
files jdk/src/macosx/native/sun/awt/CImage.m
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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