mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-09 06:30:10 +01:00
Library: refactor FF_LIBRARY_LOAD to use __cleanup__
This commit is contained in:
@@ -94,9 +94,7 @@ static const char* printOpenCL(FFinstance* instance)
|
||||
FF_LIBRARY_LOAD_SYMBOL_VAR_MESSAGE(opencl, data, clGetDeviceIDs);
|
||||
FF_LIBRARY_LOAD_SYMBOL_VAR_MESSAGE(opencl, data, clGetDeviceInfo);
|
||||
|
||||
const char* error = openCLHandleData(instance, &data);
|
||||
dlclose(opencl);
|
||||
return error;
|
||||
return openCLHandleData(instance, &data);
|
||||
}
|
||||
|
||||
#elif defined(__APPLE__) // FF_HAVE_OPENCL
|
||||
|
||||
Reference in New Issue
Block a user