[3/4] qcap: Destroy BaseOutputPin in VfwPin_Release.
Thomas Faber
thomas.faber at reactos.org
Sun Jul 27 09:48:32 CDT 2014
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.
-------------- next part --------------
From 9a01eae73e120d4b3a02b38bbcface1d3c24ee6f Mon Sep 17 00:00:00 2001
From: Thomas Faber <thomas.faber at reactos.org>
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
More information about the wine-patches
mailing list