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