From: Thomas Faber Subject: [3/4] qcap: Destroy BaseOutputPin in VfwPin_Release. Message-Id: <53D51140.7020704@reactos.org> Date: Sun, 27 Jul 2014 16:48:32 +0200 VfwPin_Construct uses BaseOutputPin_Construct to create this pin, so BaseOutputPin_Destroy should be used to free it. Fixes leaks of the pin's allocator and media type. From 9a01eae73e120d4b3a02b38bbcface1d3c24ee6f Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 27 Jul 2014 01:34:55 +0200 Subject: qcap: Destroy BaseOutputPin in VfwPin_Release. --- dlls/qcap/vfwcapture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/qcap/vfwcapture.c b/dlls/qcap/vfwcapture.c index 2cbf493..2551534 100644 --- a/dlls/qcap/vfwcapture.c +++ b/dlls/qcap/vfwcapture.c @@ -779,7 +779,7 @@ VfwPin_Release(IPin * iface) if (!refCount) { - CoTaskMemFree(This); + BaseOutputPin_Destroy(&This->pin); ObjectRefCount(FALSE); } return refCount; -- 1.9.0.msysgit.0