Rob Shearman : hlink: Fix more memory leaks in tests.

Alexandre Julliard julliard at winehq.org
Mon Dec 7 10:26:11 CST 2009


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

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Fri Dec  4 15:08:56 2009 +0000

hlink: Fix more memory leaks in tests.

---

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

diff --git a/dlls/hlink/tests/hlink.c b/dlls/hlink/tests/hlink.c
index fc00998..1a7536f 100644
--- a/dlls/hlink/tests/hlink.c
+++ b/dlls/hlink/tests/hlink.c
@@ -1044,6 +1044,7 @@ static void test_HlinkGetSetMonikerReference(void)
     ok(found_trgt == dummy, "Found target should've been %p, was: %p\n", dummy, found_trgt);
     ok(lstrcmpW(found_loc, one) == 0, "Found location should've been %s, was: %s\n", wine_dbgstr_w(one), wine_dbgstr_w(found_loc));
     IMoniker_Release(found_trgt);
+    CoTaskMemFree(found_loc);
 
     /* set location => two */
     hres = IHlink_SetMonikerReference(hlink, HLINKSETF_LOCATION, dummy2, two);
@@ -1053,6 +1054,7 @@ static void test_HlinkGetSetMonikerReference(void)
     ok(found_trgt == dummy, "Found target should've been %p, was: %p\n", dummy, found_trgt);
     ok(lstrcmpW(found_loc, two) == 0, "Found location should've been %s, was: %s\n", wine_dbgstr_w(two), wine_dbgstr_w(found_loc));
     IMoniker_Release(found_trgt);
+    CoTaskMemFree(found_loc);
 
     /* set target => dummy2 */
     hres = IHlink_SetMonikerReference(hlink, HLINKSETF_TARGET, dummy2, one);




More information about the wine-cvs mailing list