hlink: Fix some memory leaks in the tests.

This commit is contained in:
Rob Shearman 2007-12-14 19:55:10 +00:00 committed by Alexandre Julliard
parent 737510eeb6
commit 126e5d2cb1
1 changed files with 3 additions and 0 deletions

View File

@ -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 */