From 2f3c6aa150f0f696cb63b0a81a19c5468052f15e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 7 Jul 2022 22:48:03 +0200 Subject: [PATCH] Cocoa: Cleanup (cherry picked from commit 2db528d8cddcebc4c96fdac0c6a2d72792578004) --- src/cocoa_init.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cocoa_init.m b/src/cocoa_init.m index 4a8ebe9c..f5273129 100644 --- a/src/cocoa_init.m +++ b/src/cocoa_init.m @@ -479,9 +479,9 @@ void* _glfwLoadLocalVulkanLoaderNS(void) if (!frameworksUrl) return NULL; - CFURLRef url = CFURLCreateCopyAppendingPathComponent( + CFURLRef loaderUrl = CFURLCreateCopyAppendingPathComponent( kCFAllocatorDefault, frameworksUrl, CFSTR("libvulkan.1.dylib"), false); - if (!url) + if (!loaderUrl) { CFRelease(frameworksUrl); return NULL; @@ -490,10 +490,10 @@ void* _glfwLoadLocalVulkanLoaderNS(void) char path[PATH_MAX]; void* handle = NULL; - if (CFURLGetFileSystemRepresentation(url, true, (UInt8*) path, sizeof(path) - 1)) + if (CFURLGetFileSystemRepresentation(loaderUrl, true, (UInt8*) path, sizeof(path) - 1)) handle = _glfw_dlopen(path); - CFRelease(url); + CFRelease(loaderUrl); CFRelease(frameworksUrl); return handle; }