mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-22 18:28:52 -05:00
Cocoa: Cleanup
This commit is contained in:
parent
78b19548d9
commit
2db528d8cd
|
@ -464,9 +464,9 @@ void* _glfwLoadLocalVulkanLoaderCocoa(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;
|
||||
|
@ -475,10 +475,10 @@ void* _glfwLoadLocalVulkanLoaderCocoa(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 = _glfwPlatformLoadModule(path);
|
||||
|
||||
CFRelease(url);
|
||||
CFRelease(loaderUrl);
|
||||
CFRelease(frameworksUrl);
|
||||
return handle;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user