Commit 5cbc081a authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

qcap: Destroy BaseFilter after VfwCapture child class.

parent 13fe9147
...@@ -203,7 +203,7 @@ static HRESULT WINAPI VfwCapture_QueryInterface(IBaseFilter * iface, REFIID riid ...@@ -203,7 +203,7 @@ static HRESULT WINAPI VfwCapture_QueryInterface(IBaseFilter * iface, REFIID riid
static ULONG WINAPI VfwCapture_Release(IBaseFilter * iface) static ULONG WINAPI VfwCapture_Release(IBaseFilter * iface)
{ {
VfwCapture *This = (VfwCapture *)iface; VfwCapture *This = (VfwCapture *)iface;
ULONG refCount = BaseFilterImpl_Release(iface); ULONG refCount = InterlockedDecrement(&This->filter.refCount);
TRACE("%p->() New refcount: %d\n", This, refCount); TRACE("%p->() New refcount: %d\n", This, refCount);
...@@ -225,6 +225,7 @@ static ULONG WINAPI VfwCapture_Release(IBaseFilter * iface) ...@@ -225,6 +225,7 @@ static ULONG WINAPI VfwCapture_Release(IBaseFilter * iface)
IPin_Disconnect(This->pOutputPin); IPin_Disconnect(This->pOutputPin);
} }
IPin_Release(This->pOutputPin); IPin_Release(This->pOutputPin);
BaseFilter_Destroy(&This->filter);
CoTaskMemFree(This); CoTaskMemFree(This);
ObjectRefCount(FALSE); ObjectRefCount(FALSE);
} }
......
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