diff --git a/src/detection/gpu/gpu_amd.c b/src/detection/gpu/gpu_amd.c index 0b367acca..8df677f65 100644 --- a/src/detection/gpu/gpu_amd.c +++ b/src/detection/gpu/gpu_amd.c @@ -19,13 +19,12 @@ const char* ffDetectAmdGpuInfo(const FFGpuDriverCondition* cond, FFGpuDriverResu inited = true; FF_LIBRARY_LOAD(libags, NULL, "dlopen amd_ags failed", soName , 1); FF_LIBRARY_LOAD_SYMBOL_MESSAGE(libags, agsInitialize) - FF_LIBRARY_LOAD_SYMBOL_MESSAGE(libags, agsDeInitialize) struct AGSContext* apiHandle; if (ffagsInitialize(AGS_CURRENT_VERSION, NULL, &apiHandle, &gpuInfo) != AGS_SUCCESS) return "loading ags library failed"; - ffagsDeInitialize(apiHandle); + // agsDeInitialize will free pointers allocated in gpuInfo. Just leak them. } if (gpuInfo.numDevices == 0)