amstream: Leave critical section on success (Coverity).

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2019-05-26 22:49:20 +00:00 committed by Alexandre Julliard
parent b9b5117fe7
commit 623085d550
1 changed files with 1 additions and 0 deletions

View File

@ -367,6 +367,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_FindPin(IMediaStreamFilter *iface, c
{ {
CoTaskMemFree(ret_id); CoTaskMemFree(ret_id);
*out = pin; *out = pin;
LeaveCriticalSection(&filter->cs);
return S_OK; return S_OK;
} }
CoTaskMemFree(ret_id); CoTaskMemFree(ret_id);