1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-30 05:58:52 -05:00

Replaced CFRelease with CGDisplayModeRelease.

This commit is contained in:
Camilla Berglund 2012-03-06 00:58:04 +01:00
parent c286c716cd
commit 5f854b2bbf

View File

@ -116,11 +116,7 @@ int _glfwPlatformTerminate(void)
// Restore the original gamma ramp
_glfwPlatformSetGammaRamp(&_glfwLibrary.originalRamp);
if (_glfwLibrary.NS.desktopMode)
{
CFRelease(_glfwLibrary.NS.desktopMode);
_glfwLibrary.NS.desktopMode = NULL;
}
CGDisplayModeRelease(_glfwLibrary.NS.desktopMode);
[NSApp setDelegate:nil];
[_glfwLibrary.NS.delegate release];