Damjan Jovanovic : qcap/tests: Fix SmartTeeFilter reference leaks from the pins in its test.

Alexandre Julliard julliard at wine.codeweavers.com
Fri May 29 05:29:48 CDT 2015


Module: wine
Branch: master
Commit: 6bc6b0bf71bd23fef8962c4e6be936454cd1ecab
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6bc6b0bf71bd23fef8962c4e6be936454cd1ecab

Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date:   Thu May 28 19:03:03 2015 +0200

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 19177bd..39737f4 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++;
     }




More information about the wine-cvs mailing list