Skip to content

Commit

Permalink
Merge pull request #65 from markmaker/fix/double-release
Browse files Browse the repository at this point in the history
Fix / Avoid double Release() in FindCaptureDevice()
  • Loading branch information
vonnieda authored Apr 14, 2023
2 parents d33bc69 + 3bec8e3 commit 982f21c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion win/platformcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ HRESULT FindCaptureDevice(IBaseFilter** ppSrcFilter, const wchar_t* devicePath)
(FAILED(hr) && strDevicePath == std::to_wstring(num_devices))) {
VariantClear(&varName);
hr = pMoniker->BindToObject(0, 0, IID_PPV_ARGS(ppSrcFilter));
pMoniker->Release();
return hr;
}
VariantClear(&varName);
Expand Down

0 comments on commit 982f21c

Please sign in to comment.