Fix a potential leak in wmf

Change-Id: I4fc039aeaf00a02122d5e11867c73223cc2ebbc1
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
Ling Hu
2012-07-04 14:47:32 +10:00
committed by Qt by Nokia
parent a3e9228ac4
commit 7fb95fe3e2

View File

@@ -140,6 +140,7 @@ HRESULT STDMETHODCALLTYPE SourceResolver::Invoke(IMFAsyncResult *pAsyncResult)
}
hr = pSource->QueryInterface(IID_PPV_ARGS(&m_mediaSource));
pSource->Release();
if (FAILED(hr)) {
emit error(hr);
return S_OK;