Commit 466c9700 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

quartz: Remove redudant NULL checks before CoTaskMemFree().

parent 7113bef6
......@@ -2004,9 +2004,7 @@ static void test_streamselect(IAMStreamSelect *sel)
todo_wine ok(name && !wcscmp(name, L"Stream(E0)"), "Got name %ls.\n", name ? name : L"(null)");
todo_wine ok(object == unk_video, "Got object %p, expected %p.\n", object, unk_video);
ok(unk == NULL, "Got unknown %p.\n", unk);
if (name)
CoTaskMemFree(name);
CoTaskMemFree(name);
if (mt)
DeleteMediaType(mt);
if (object)
......@@ -2023,9 +2021,7 @@ static void test_streamselect(IAMStreamSelect *sel)
todo_wine ok(name && !wcscmp(name, L"Stream(C0)"), "Got name %ls.\n", name ? name : L"(null)");
todo_wine ok(object == unk_audio, "Got object %p, expected %p.\n", object, unk_audio);
ok(unk == NULL, "Got unknown %p.\n", unk);
if (name)
CoTaskMemFree(name);
CoTaskMemFree(name);
if (mt)
DeleteMediaType(mt);
if (object)
......
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