Windows: fix possible crashes

This commit is contained in:
李通洲
2022-10-11 22:36:14 +08:00
parent 88a16d4c7d
commit 5e3e2b6137
7 changed files with 24 additions and 18 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ const char* ffDetectGPUImpl(FFlist* gpus, const FFinstance* instance)
gpu->coreCount = FF_GPU_CORE_COUNT_UNSET;
}
pclsObj->Release();
if(pclsObj) pclsObj->Release();
pEnumerator->Release();
return nullptr;
}