Rob Shearman : hlink: Fix some memory leaks in the tests.
Alexandre Julliard
julliard at winehq.org
Mon Dec 17 06:42:15 CST 2007
Module: wine
Branch: master
Commit: 126e5d2cb1cb105b7aa1f104db0a679e4c20ed08
URL: http://source.winehq.org/git/wine.git/?a=commit;h=126e5d2cb1cb105b7aa1f104db0a679e4c20ed08
Author: Rob Shearman <rob at codeweavers.com>
Date: Fri Dec 14 19:55:10 2007 +0000
hlink: Fix some memory leaks in the tests.
---
dlls/hlink/tests/hlink.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/hlink/tests/hlink.c b/dlls/hlink/tests/hlink.c
index 06d1ee8..a2d7360 100644
--- a/dlls/hlink/tests/hlink.c
+++ b/dlls/hlink/tests/hlink.c
@@ -101,6 +101,7 @@ static void test_reference(void)
r = IHlink_GetStringReference(lnk, -1, &str, NULL);
ok(r == S_OK, "failed\n");
+ CoTaskMemFree(str);
r = IHlink_GetStringReference(lnk, HLINKGETREF_DEFAULT, &str, NULL);
ok(r == S_OK, "failed\n");
@@ -115,6 +116,8 @@ static void test_reference(void)
r = IHlink_GetStringReference(lnk, HLINKGETREF_DEFAULT, NULL, &str);
ok(r == S_OK, "failed\n");
ok(str == NULL, "string should be null\n");
+
+ IHlink_Release(lnk);
}
/* url only */
More information about the wine-cvs
mailing list