Commit 0c9b8322 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

quartz: Destroy BaseRenderer in NullRendererInner_Release.

parent 1236f52d
...@@ -128,12 +128,11 @@ static ULONG WINAPI NullRendererInner_AddRef(IUnknown *iface) ...@@ -128,12 +128,11 @@ 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 = InterlockedDecrement(&This->renderer.filter.refCount); ULONG refCount = BaseRendererImpl_Release(&This->renderer.filter.IBaseFilter_iface);
if (!refCount) if (!refCount)
{ {
TRACE("Destroying Null Renderer\n"); TRACE("Destroying Null Renderer\n");
BaseFilter_Destroy(&This->renderer.filter);
CoTaskMemFree(This); CoTaskMemFree(This);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment