hlink: Fix some memory leaks in the tests.
This commit is contained in:
parent
737510eeb6
commit
126e5d2cb1
@ -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)
|
|||||||
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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user