James Hawkins : msi: Free the enumeration data returned by IEnumSTATSTG_Next.

Alexandre Julliard julliard at winehq.org
Mon Dec 14 09:51:22 CST 2009


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

Author: James Hawkins <truiken at gmail.com>
Date:   Sun Dec 13 19:36:35 2009 -0800

msi: Free the enumeration data returned by IEnumSTATSTG_Next.

---

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

diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c
index bafa0db..e44970d 100644
--- a/dlls/msi/tests/db.c
+++ b/dlls/msi/tests/db.c
@@ -5540,6 +5540,8 @@ static void enum_stream_names(IStorage *stg)
         ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
         ok(stm != NULL, "Expected non-NULL stream\n");
 
+        CoTaskMemFree(stat.pwcsName);
+
         sz = MAX_PATH;
         memset(data, 'a', MAX_PATH);
         hr = IStream_Read(stm, data, sz, &count);




More information about the wine-cvs mailing list