quartz: Destroy BaseRenderer in NullRendererInner_Release.

This commit is contained in:
Thomas Faber 2014-07-28 12:10:01 +02:00 committed by Alexandre Julliard
parent 1236f52d19
commit 0c9b832229

View File

@ -128,12 +128,11 @@ static ULONG WINAPI NullRendererInner_AddRef(IUnknown *iface)
static ULONG WINAPI NullRendererInner_Release(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)
{
TRACE("Destroying Null Renderer\n");
BaseFilter_Destroy(&This->renderer.filter);
CoTaskMemFree(This);
}