From f8bcc7e65c7996d503260018ecb4d6ac02399bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 21 Feb 2019 03:31:28 +0100 Subject: [PATCH] NSGL: Fix leak of condition object Related to #1417. --- src/nsgl_context.m | 3 +++ 1 file changed, 3 insertions(+) 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;