NSGL: Fix leak of condition object

Related to #1417.
This commit is contained in:
Camilla Löwy 2019-02-21 03:31:28 +01:00
parent ba761ab06e
commit f8bcc7e65c

View File

@ -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;