qedit/nullrenderer: Use strmbase_renderer_cleanup().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cd131ca026
commit
3855216cb3
|
@ -113,11 +113,12 @@ static ULONG WINAPI NullRendererInner_AddRef(IUnknown *iface)
|
||||||
static ULONG WINAPI NullRendererInner_Release(IUnknown *iface)
|
static ULONG WINAPI NullRendererInner_Release(IUnknown *iface)
|
||||||
{
|
{
|
||||||
NullRendererImpl *This = impl_from_IUnknown(iface);
|
NullRendererImpl *This = impl_from_IUnknown(iface);
|
||||||
ULONG refCount = BaseRendererImpl_Release(&This->renderer.filter.IBaseFilter_iface);
|
ULONG refCount = InterlockedDecrement(&This->renderer.filter.refCount);
|
||||||
|
|
||||||
if (!refCount)
|
if (!refCount)
|
||||||
{
|
{
|
||||||
TRACE("Destroying Null Renderer\n");
|
TRACE("Destroying Null Renderer\n");
|
||||||
|
strmbase_renderer_cleanup(&This->renderer);
|
||||||
CoTaskMemFree(This);
|
CoTaskMemFree(This);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,10 +235,7 @@ HRESULT NullRenderer_create(IUnknown *pUnkOuter, void **ppv)
|
||||||
(DWORD_PTR)(__FILE__ ": NullRendererImpl.csFilter"), &RendererFuncTable);
|
(DWORD_PTR)(__FILE__ ": NullRendererImpl.csFilter"), &RendererFuncTable);
|
||||||
|
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
{
|
|
||||||
BaseRendererImpl_Release(&pNullRenderer->renderer.filter.IBaseFilter_iface);
|
|
||||||
CoTaskMemFree(pNullRenderer);
|
CoTaskMemFree(pNullRenderer);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
*ppv = &pNullRenderer->IUnknown_inner;
|
*ppv = &pNullRenderer->IUnknown_inner;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue