Don't leak device moniker when BindToStorage fails.
Bug: b/143372501 Change-Id: Ib60efc830de057c7edafa81b77b696b785fb78e7 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/159661 Reviewed-by: Tommi <tommi@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29774}
This commit is contained in:
@ -274,8 +274,8 @@ IBaseFilter* DeviceInfoDS::GetDeviceFilter(const char* deviceUniqueIdUTF8,
|
||||
}
|
||||
VariantClear(&varName);
|
||||
pBag->Release();
|
||||
pM->Release();
|
||||
}
|
||||
pM->Release();
|
||||
}
|
||||
return captureFilter;
|
||||
}
|
||||
|
Reference in New Issue
Block a user