Merge pull request #1704 from DDRBoxman/qsvcrash
obs-qsv11: Don't try to free non allocated array on destructionmaster
commit
709aac5188
|
@ -584,11 +584,13 @@ mfxStatus QSV_Encoder_Internal::ClearData()
|
||||||
if (m_bUseD3D11 || m_bD3D9HACK)
|
if (m_bUseD3D11 || m_bD3D9HACK)
|
||||||
m_mfxAllocator.Free(m_mfxAllocator.pthis, &m_mfxResponse);
|
m_mfxAllocator.Free(m_mfxAllocator.pthis, &m_mfxResponse);
|
||||||
|
|
||||||
for (int i = 0; i < m_nSurfNum; i++) {
|
if (m_pmfxSurfaces) {
|
||||||
if (!m_bUseD3D11 && !m_bD3D9HACK)
|
for (int i = 0; i < m_nSurfNum; i++) {
|
||||||
delete m_pmfxSurfaces[i]->Data.Y;
|
if (!m_bUseD3D11 && !m_bD3D9HACK)
|
||||||
|
delete m_pmfxSurfaces[i]->Data.Y;
|
||||||
|
|
||||||
delete m_pmfxSurfaces[i];
|
delete m_pmfxSurfaces[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
MSDK_SAFE_DELETE_ARRAY(m_pmfxSurfaces);
|
MSDK_SAFE_DELETE_ARRAY(m_pmfxSurfaces);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue