From dea50a98e8c03403d9c38b19713f18c8afddabcc Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Wed, 15 May 2019 18:16:56 -0500 Subject: [PATCH] quartz/videorenderer: Use strmbase_renderer_cleanup(). Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- dlls/quartz/videorenderer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c index 1646e3fe0c9..f3d817b90ca 100644 --- a/dlls/quartz/videorenderer.c +++ b/dlls/quartz/videorenderer.c @@ -694,7 +694,7 @@ static ULONG WINAPI VideoRendererInner_AddRef(IUnknown *iface) static ULONG WINAPI VideoRendererInner_Release(IUnknown *iface) { VideoRendererImpl *This = impl_from_IUnknown(iface); - ULONG refCount = BaseRendererImpl_Release(&This->renderer.filter.IBaseFilter_iface); + ULONG refCount = InterlockedDecrement(&This->renderer.filter.refCount); TRACE("(%p)->(): new ref = %d\n", This, refCount); @@ -708,6 +708,7 @@ static ULONG WINAPI VideoRendererInner_Release(IUnknown *iface) CloseHandle(This->hEvent); TRACE("Destroying Video Renderer\n"); + strmbase_renderer_cleanup(&This->renderer); CoTaskMemFree(This); return 0; @@ -1068,7 +1069,7 @@ HRESULT VideoRenderer_create(IUnknown *pUnkOuter, void **ppv) return S_OK; fail: - BaseRendererImpl_Release(&pVideoRenderer->renderer.filter.IBaseFilter_iface); + strmbase_renderer_cleanup(&pVideoRenderer->renderer); CoTaskMemFree(pVideoRenderer); return hr; }