Commit 4f0dfb51 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

ole32: Fix memory leaks in the storage test.

parent 0fe54088
......@@ -877,6 +877,9 @@ static void test_streamenum(void)
ok(r==S_OK, "IEnumSTATSTG->Next failed\n");
ok(count == 1, "count wrong\n");
if (r == S_OK)
CoTaskMemFree(stat.pwcsName);
r = IEnumSTATSTG_Release(ee);
/* second enum... destroy the stream before reading */
......@@ -1939,6 +1942,7 @@ static void test_fmtusertypestg(void)
found = TRUE;
else
ok(0, "found unexpected stream or storage\n");
CoTaskMemFree(statstg.pwcsName);
}
ok(found == TRUE, "expected storage to contain stream \\0001CompObj\n");
IEnumSTATSTG_Release(stat);
......@@ -1962,6 +1966,7 @@ static void test_fmtusertypestg(void)
found = TRUE;
else
ok(0, "found unexpected stream or storage\n");
CoTaskMemFree(statstg.pwcsName);
}
ok(found == TRUE, "expected storage to contain stream \\0001CompObj\n");
IEnumSTATSTG_Release(stat);
......
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