Prechádzať zdrojové kódy

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.
Richard Stanway 3 rokov pred
rodič
commit
9170e0a9b1
1 zmenil súbory, kde vykonal 0 pridanie a 1 odobranie
  1. 0 1
      plugins/obs-qsv11/common_directx9.cpp

+ 0 - 1
plugins/obs-qsv11/common_directx9.cpp

@@ -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];