Rob Shearman : ole32: Fix stream reference leak in test_ReadClassStm.

Alexandre Julliard julliard at winehq.org
Wed Dec 30 10:18:14 CST 2009


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

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Tue Dec 29 19:00:22 2009 +0000

ole32: Fix stream reference leak in test_ReadClassStm.

---

 dlls/ole32/tests/storage32.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c
index e8a7ec9..19c1e8f 100644
--- a/dlls/ole32/tests/storage32.c
+++ b/dlls/ole32/tests/storage32.c
@@ -1593,6 +1593,8 @@ static void test_ReadClassStm(void)
     hr = ReadClassStm(pStream, &clsid);
     ok_ole_success(hr, "ReadClassStm");
     ok(IsEqualCLSID(&clsid, &test_stg_cls), "clsid should have been set to CLSID_WineTest\n");
+
+    IStream_Release(pStream);
 }
 
 struct access_res




More information about the wine-cvs mailing list