jdk/src/macosx/native/sun/awt/CPrinterJob.m
changeset 23651 e41298d0da2f
parent 23010 6dadb192ad81
--- a/jdk/src/macosx/native/sun/awt/CPrinterJob.m	Fri Mar 14 14:23:33 2014 +0400
+++ b/jdk/src/macosx/native/sun/awt/CPrinterJob.m	Fri Mar 14 16:01:04 2014 +0400
@@ -469,8 +469,6 @@
     //  safety is assured by the java side of this call.
 
     NSPrintInfo* printInfo = createDefaultNSPrintInfo(env, NULL);
-    if (printInfo) CFRetain(printInfo); // GC
-    [printInfo release];
 
     result = ptr_to_jlong(printInfo);
 
@@ -490,7 +488,7 @@
     if (nsPrintInfo != -1)
     {
         NSPrintInfo* printInfo = (NSPrintInfo*)jlong_to_ptr(nsPrintInfo);
-        if (printInfo) CFRelease(printInfo); // GC
+        [printInfo release];
     }
 JNF_COCOA_EXIT(env);
 }