Commit 126e5d2c authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

hlink: Fix some memory leaks in the tests.

parent 737510ee
...@@ -101,6 +101,7 @@ static void test_reference(void) ...@@ -101,6 +101,7 @@ static void test_reference(void)
r = IHlink_GetStringReference(lnk, -1, &str, NULL); r = IHlink_GetStringReference(lnk, -1, &str, NULL);
ok(r == S_OK, "failed\n"); ok(r == S_OK, "failed\n");
CoTaskMemFree(str);
r = IHlink_GetStringReference(lnk, HLINKGETREF_DEFAULT, &str, NULL); r = IHlink_GetStringReference(lnk, HLINKGETREF_DEFAULT, &str, NULL);
ok(r == S_OK, "failed\n"); ok(r == S_OK, "failed\n");
...@@ -115,6 +116,8 @@ static void test_reference(void) ...@@ -115,6 +116,8 @@ static void test_reference(void)
r = IHlink_GetStringReference(lnk, HLINKGETREF_DEFAULT, NULL, &str); r = IHlink_GetStringReference(lnk, HLINKGETREF_DEFAULT, NULL, &str);
ok(r == S_OK, "failed\n"); ok(r == S_OK, "failed\n");
ok(str == NULL, "string should be null\n"); ok(str == NULL, "string should be null\n");
IHlink_Release(lnk);
} }
/* url only */ /* url only */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment