urlmon: Fix memory leaks.

This commit is contained in:
Alistair Leslie-Hughes 2007-12-10 14:28:12 +11:00 committed by Alexandre Julliard
parent 5c3dc64a87
commit 7f033ea065
2 changed files with 2 additions and 0 deletions

View File

@ -608,6 +608,7 @@ static void test_FindMimeFromData(void)
ok(!lstrcmpW(mime, mimeTextHtml), "[%d] wrong mime\n", i);
else
ok(!lstrcmpW(mime, mime_tests2[i].mime), "[%d] wrong mime\n", i);
CoTaskMemFree(mime);
hres = FindMimeFromData(NULL, NULL, mime_tests2[i].data, mime_tests2[i].size,
mimeImagePjpeg, 0, &mime, 0);

View File

@ -1496,6 +1496,7 @@ static void test_BindToStorage(int protocol, BOOL emul)
hres = IMoniker_GetDisplayName(mon, bctx, NULL, &display_name);
ok(hres == S_OK, "GetDisplayName failed %08x\n", hres);
ok(!lstrcmpW(display_name, urls[test_protocol]), "GetDisplayName got wrong name\n");
CoTaskMemFree(display_name);
SET_EXPECT(GetBindInfo);
SET_EXPECT(QueryInterface_IInternetProtocol);