Huw Davies : oleaut32: Fix a leak in the tests.

Alexandre Julliard julliard at winehq.org
Tue Dec 15 09:40:21 CST 2009


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Dec 15 15:17:22 2009 +0000

oleaut32: Fix a leak in the tests.

Found by Valgrind.

---

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

diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c
index 3ea6ac2..8f19294 100644
--- a/dlls/oleaut32/tests/vartype.c
+++ b/dlls/oleaut32/tests/vartype.c
@@ -5460,6 +5460,8 @@ static void test_BstrCopy(void)
     bstr = Get(V_BSTR(&vt2));
     ok (bstr->dwLen == 3, "Expected 3, got %d\n", bstr->dwLen);
     ok (!lstrcmpA((LPCSTR)bstr->szString, szTestTruncA), "String different\n");
+    VariantClear(&vt2);
+    VariantClear(&vt1);
   }
 }
 




More information about the wine-cvs mailing list