Skip to content

Commit 982f21c

Browse files
authored
Merge pull request #65 from markmaker/fix/double-release
Fix / Avoid double Release() in FindCaptureDevice()
2 parents d33bc69 + 3bec8e3 commit 982f21c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

win/platformcontext.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ HRESULT FindCaptureDevice(IBaseFilter** ppSrcFilter, const wchar_t* devicePath)
453453
(FAILED(hr) && strDevicePath == std::to_wstring(num_devices))) {
454454
VariantClear(&varName);
455455
hr = pMoniker->BindToObject(0, 0, IID_PPV_ARGS(ppSrcFilter));
456-
pMoniker->Release();
457456
return hr;
458457
}
459458
VariantClear(&varName);

0 commit comments

Comments
 (0)