diff --git a/src/nsgl_context.m b/src/nsgl_context.m index ae1d18b8..2c104187 100755 --- a/src/nsgl_context.m +++ b/src/nsgl_context.m @@ -133,6 +133,9 @@ static void destroyContextNSGL(_GLFWwindow* window) CVDisplayLinkRelease(window->context.nsgl.displayLink); } + [window->context.nsgl.swapIntervalCond release]; + window->context.nsgl.swapIntervalCond = nil; + [window->context.nsgl.pixelFormat release]; window->context.nsgl.pixelFormat = nil;