diff --git a/src/nsgl_context.m b/src/nsgl_context.m index f2d18a18..69502ca2 100644 --- a/src/nsgl_context.m +++ b/src/nsgl_context.m @@ -121,6 +121,8 @@ static void destroyContextNSGL(_GLFWwindow* window) { @autoreleasepool { CVDisplayLinkStop(window->context.nsgl.displayLink); + CVDisplayLinkRelease(window->context.nsgl.displayLink); + window->context.nsgl.displayLink = NULL; _glfwPlatformDestroyCondvar(&window->context.nsgl.swapIntervalCond); _glfwPlatformDestroyMutex(&window->context.nsgl.swapIntervalLock);