Add missing release for CVDisplayLink

This commit is contained in:
Philip Rader 2023-02-18 17:21:17 -07:00
parent 01eae144e1
commit 0d0a840b22

View File

@ -121,6 +121,8 @@ static void destroyContextNSGL(_GLFWwindow* window)
{ {
@autoreleasepool { @autoreleasepool {
CVDisplayLinkStop(window->context.nsgl.displayLink); CVDisplayLinkStop(window->context.nsgl.displayLink);
CVDisplayLinkRelease(window->context.nsgl.displayLink);
window->context.nsgl.displayLink = NULL;
_glfwPlatformDestroyCondvar(&window->context.nsgl.swapIntervalCond); _glfwPlatformDestroyCondvar(&window->context.nsgl.swapIntervalCond);
_glfwPlatformDestroyMutex(&window->context.nsgl.swapIntervalLock); _glfwPlatformDestroyMutex(&window->context.nsgl.swapIntervalLock);