mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
Add missing release for CVDisplayLink
This commit is contained in:
parent
01eae144e1
commit
0d0a840b22
@ -121,6 +121,8 @@ static void destroyContextNSGL(_GLFWwindow* window)
|
|||||||
{
|
{
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
CVDisplayLinkStop(window->context.nsgl.displayLink);
|
CVDisplayLinkStop(window->context.nsgl.displayLink);
|
||||||
|
CVDisplayLinkRelease(window->context.nsgl.displayLink);
|
||||||
|
window->context.nsgl.displayLink = NULL;
|
||||||
|
|
||||||
_glfwPlatformDestroyCondvar(&window->context.nsgl.swapIntervalCond);
|
_glfwPlatformDestroyCondvar(&window->context.nsgl.swapIntervalCond);
|
||||||
_glfwPlatformDestroyMutex(&window->context.nsgl.swapIntervalLock);
|
_glfwPlatformDestroyMutex(&window->context.nsgl.swapIntervalLock);
|
||||||
|
Loading…
Reference in New Issue
Block a user