]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/utils_osx.cpp
Update the wxSpinCtrlDouble documentation so SetIncrement refers to SetDigits
[wxWidgets.git] / src / osx / utils_osx.cpp
index 1f09af498f19f2b0527ce0028904a1ce2be5329f..7eb431ad8660ca5f12c82e7ce1c57733ce4942ed 100644 (file)
@@ -35,9 +35,7 @@
 
 // #include "MoreFilesX.h"
 
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-    #include <AudioToolbox/AudioServices.h>
-#endif
+#include <AudioToolbox/AudioServices.h>
 
 #include "wx/osx/private.h"
 #include "wx/osx/private/timer.h"
@@ -90,6 +88,7 @@ int wxDisplayDepth()
             theDepth = 32; // some reasonable default
 
         CFRelease(encoding);
+        CGDisplayModeRelease(currentMode);
     }
     else
 #endif