From 6bc6b0bf71bd23fef8962c4e6be936454cd1ecab Mon Sep 17 00:00:00 2001 From: Damjan Jovanovic Date: Thu, 28 May 2015 19:03:03 +0200 Subject: [PATCH] qcap/tests: Fix SmartTeeFilter reference leaks from the pins in its test. --- dlls/qcap/tests/qcap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/qcap/tests/qcap.c b/dlls/qcap/tests/qcap.c index 19177bd7a81..39737f40899 100644 --- a/dlls/qcap/tests/qcap.c +++ b/dlls/qcap/tests/qcap.c @@ -127,6 +127,7 @@ static void test_smart_tee_filter(void) while (IEnumPins_Next(enumPins, 1, &pin, NULL) == S_OK) { PIN_INFO pinInfo; + memset(&pinInfo, 0, sizeof(pinInfo)); hr = IPin_QueryPinInfo(pin, &pinInfo); ok(SUCCEEDED(hr), "QueryPinInfo failed, hr=%08x\n", hr); if (FAILED(hr)) @@ -154,6 +155,8 @@ static void test_smart_tee_filter(void) ok(0, "pin %d isn't supposed to exist\n", pinNumber); endwhile: + if (pinInfo.pFilter) + IBaseFilter_Release(pinInfo.pFilter); IPin_Release(pin); pinNumber++; } -- 2.11.4.GIT