urlmon: Fix memory leaks.
This commit is contained in:
parent
5c3dc64a87
commit
7f033ea065
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue