mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
@@ -712,7 +712,7 @@ mfxStatus QSV_Encoder_Internal::ClearData()
|
||||
}
|
||||
|
||||
if (m_outBitstream.Data) {
|
||||
delete m_outBitstream.Data;
|
||||
delete[] m_outBitstream.Data;
|
||||
m_outBitstream.Data = NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -393,6 +393,7 @@ 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];
|
||||
@@ -402,6 +403,7 @@ mfxStatus _dx9_simple_alloc(mfxFrameAllocRequest *request,
|
||||
new IDirect3DSurface9 *[request->NumFrameSuggested]);
|
||||
if (!dxSrf.get()) {
|
||||
MSDK_SAFE_FREE(dxMids);
|
||||
MSDK_SAFE_FREE(dxMidPtrs);
|
||||
return MFX_ERR_MEMORY_ALLOC;
|
||||
}
|
||||
hr = videoService->CreateSurface(
|
||||
@@ -410,6 +412,7 @@ mfxStatus _dx9_simple_alloc(mfxFrameAllocRequest *request,
|
||||
m_surfaceUsage, target, dxSrf.get(), NULL);
|
||||
if (FAILED(hr)) {
|
||||
MSDK_SAFE_FREE(dxMids);
|
||||
MSDK_SAFE_FREE(dxMidPtrs);
|
||||
return MFX_ERR_MEMORY_ALLOC;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user