From 0d0a840b229950c34cdb7fb94c28990169cc6fc6 Mon Sep 17 00:00:00 2001 From: Philip Rader Date: Sat, 18 Feb 2023 17:21:17 -0700 Subject: [PATCH] Add missing release for CVDisplayLink --- src/nsgl_context.m | 2 ++ 1 file changed, 2 insertions(+) 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);