Alexander Dorofeyev : quartz/tests: Fix interface leaks in filtergraph test .

Alexandre Julliard julliard at winehq.org
Fri Jul 18 06:46:13 CDT 2008


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

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Thu Jul 17 20:25:13 2008 +0300

quartz/tests: Fix interface leaks in filtergraph test.

---

 dlls/quartz/tests/filtergraph.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/quartz/tests/filtergraph.c b/dlls/quartz/tests/filtergraph.c
index 103cfa1..e39097b 100644
--- a/dlls/quartz/tests/filtergraph.c
+++ b/dlls/quartz/tests/filtergraph.c
@@ -196,6 +196,12 @@ static void test_graph_builder(void)
     ok(pF2 != NULL, "IGraphBuilder_FindFilterByName returned NULL\n");
     hr = IGraphBuilder_FindFilterByName(pgraph, testFilterW, NULL);
     ok(hr == E_POINTER, "IGraphBuilder_FindFilterByName returned %x\n", hr);
+
+    if (pIn) IPin_Release(pIn);
+    if (pEnum) IEnumPins_Release(pEnum);
+    if (pF) IBaseFilter_Release(pF);
+    if (pF2) IBaseFilter_Release(pF2);
+
     releasefiltergraph();
 }
 




More information about the wine-cvs mailing list