diff --git a/src/cocoa_init.m b/src/cocoa_init.m index 626d15828..6aa882067 100644 --- a/src/cocoa_init.m +++ b/src/cocoa_init.m @@ -359,7 +359,7 @@ void _glfwPlatformTerminate(void) _glfwTerminateNSGL(); _glfwTerminateJoysticksNS(); - _glfwDestroyAutorealeasePool(); + _glfwDestroyAutoreleasePool(); } const char* _glfwPlatformGetVersionString(void) @@ -390,9 +390,8 @@ void _glfwCreateAutoreleasePool() } } -// Clears and resets the autorealease pool if GLFW is managing its own even loop, -// and not using the built-in NSApplication event loop. GLFW creates its own -// autorelease pool only if it is running its own event loop +// Clears and resets the autorelease pool only if if GLFW is managing its own +// event loop, and not using the built-in NSApplication event loop. void _glfwResetAutoreleasePool() { if(!isNSApplicationRunning()) @@ -402,7 +401,7 @@ void _glfwResetAutoreleasePool() } } -void _glfwDestroyAutorealeasePool() +void _glfwDestroyAutoreleasePool() { if(!isNSApplicationRunning()) { diff --git a/src/cocoa_platform.h b/src/cocoa_platform.h index 524ef6545..165311a25 100644 --- a/src/cocoa_platform.h +++ b/src/cocoa_platform.h @@ -162,12 +162,11 @@ void _glfwPollMonitorsNS(void); GLFWbool _glfwSetVideoModeNS(_GLFWmonitor* monitor, const GLFWvidmode* desired); void _glfwRestoreVideoModeNS(_GLFWmonitor* monitor); -// If GLFW is running as a stand-alone application, we create a global autorealease +// If GLFW is running as a stand-alone application, we create a global autorelease // pool. If GLFW is running in an existing native Cocoa app, the underlying -// NSApplication creates its own autorelease pool. These functions check if GLFW -// is running in a Cocoa app or not, and creates the autorealease pool accordingly. +// NSApplication create its own autorelease pool. These functions check if GLFW +// is running in a Cocoa app or not, and creates the autorelease pool accordingly. // If GLFW is in a Cocoa app, these functions don't do anything void _glfwCreateAutoreleasePool(); void _glfwResetAutoreleasePool(); -void _glfwDestroyAutorealeasePool(); - +void _glfwDestroyAutoreleasePool();