quartz: Fix a use-after-free in FilterGraph2_Connect().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2018-02-27 00:01:27 -06:00 committed by Alexandre Julliard
parent 71fb9e65cf
commit e5db13a8c8
1 changed files with 1 additions and 0 deletions

View File

@ -1049,6 +1049,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
if (IsEqualGUID(&clsid, &FilterCLSID)) { if (IsEqualGUID(&clsid, &FilterCLSID)) {
/* Skip filter (same as the one the output pin belongs to) */ /* Skip filter (same as the one the output pin belongs to) */
IBaseFilter_Release(pfilter); IBaseFilter_Release(pfilter);
pfilter = NULL;
goto error; goto error;
} }