jdk/src/macosx/native/sun/awt/CGraphicsDevice.m
changeset 25199 4f8ea6dda40d
parent 24545 5f998bcc934e
--- a/jdk/src/macosx/native/sun/awt/CGraphicsDevice.m	Tue Jun 17 19:05:06 2014 +0400
+++ b/jdk/src/macosx/native/sun/awt/CGraphicsDevice.m	Wed Jun 18 13:21:59 2014 +0400
@@ -57,7 +57,7 @@
     CFArrayRef allModes = CGDisplayCopyAllDisplayModes(displayID, NULL);
 
     CFIndex numModes = CFArrayGetCount(allModes);
-    CFMutableArrayRef validModes = CFArrayCreateMutable(kCFAllocatorDefault, numModes + 1, NULL);
+    CFMutableArrayRef validModes = CFArrayCreateMutable(kCFAllocatorDefault, numModes + 1, &kCFTypeArrayCallBacks);
 
     CFIndex n;
     for (n=0; n < numModes; n++) {