--- 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++) {