Delete GPUPerfAPI table if GPA_GetFuncTable fails

This commit is contained in:
baldurk
2020-02-18 11:02:56 +00:00
parent d7c728fcad
commit 90d0f747fe
@@ -144,6 +144,7 @@ bool AMDCounters::Init(ApiType apiType, void *pContext)
if(AMD_FAILED(gpaStatus))
{
SAFE_DELETE(m_pGPUPerfAPI);
RDCERR("Failed to load the GPA function entrypoint.");
return false;
}