Fix a potential leak in wmf
Change-Id: I4fc039aeaf00a02122d5e11867c73223cc2ebbc1 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
@@ -140,6 +140,7 @@ HRESULT STDMETHODCALLTYPE SourceResolver::Invoke(IMFAsyncResult *pAsyncResult)
|
|||||||
}
|
}
|
||||||
|
|
||||||
hr = pSource->QueryInterface(IID_PPV_ARGS(&m_mediaSource));
|
hr = pSource->QueryInterface(IID_PPV_ARGS(&m_mediaSource));
|
||||||
|
pSource->Release();
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
emit error(hr);
|
emit error(hr);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user