obs-qsv11: Fix double free on CreateSurface failure

_dx9_simple_free already frees this pointer. I don't think this code
path is currently reachable, but it should probably still be fixed.
Detected by Coverity Scan.
This commit is contained in:
Richard Stanway 2022-03-17 13:22:19 +01:00
parent 6d5dd75e4a
commit 9170e0a9b1
No known key found for this signature in database
GPG Key ID: 4F96FCA24BCE7BA1

View File

@ -393,7 +393,6 @@ mfxStatus _dx9_simple_alloc(mfxFrameAllocRequest *request,
if (FAILED(hr)) {
_dx9_simple_free(response);
MSDK_SAFE_FREE(dxMids);
MSDK_SAFE_FREE(dxMidPtrs);
return MFX_ERR_MEMORY_ALLOC;
}
dxMidPtrs[i] = &dxMids[i];