Rob Shearman : ole32: Fix a memory leak in the HGLOBAL stream tests by telling CreateStreamOnHGlobal to free the memory it allocates , as we don't free it ourselves in this test.

Alexandre Julliard julliard at winehq.org
Tue Nov 13 08:34:43 CST 2007


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Mon Nov 12 20:11:01 2007 +0000

ole32: Fix a memory leak in the HGLOBAL stream tests by telling CreateStreamOnHGlobal to free the memory it allocates, as we don't free it ourselves in this test.

---

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

diff --git a/dlls/ole32/tests/hglobalstream.c b/dlls/ole32/tests/hglobalstream.c
index 6338dfe..eb98a18 100644
--- a/dlls/ole32/tests/hglobalstream.c
+++ b/dlls/ole32/tests/hglobalstream.c
@@ -209,7 +209,7 @@ static IStream Test_Stream = { &StreamVtbl };
 static void test_copyto(void)
 {
     IStream *pStream, *pStream2;
-    HRESULT hr = CreateStreamOnHGlobal(NULL, FALSE, &pStream);
+    HRESULT hr = CreateStreamOnHGlobal(NULL, TRUE, &pStream);
     static const char szHello[] = "Hello";
     ULARGE_INTEGER cb;
     static const char *methods_copyto[] =




More information about the wine-cvs mailing list