7168851: [macosx] Netbeans crashes in CImage.nativeCreateNSImageFromArray
Summary: Eliminate unnecessary -release call
Reviewed-by: dcherepanov
--- 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