Signed-off-by: Sven Baars sven.wine@gmail.com --- dlls/quartz/tests/filesource.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/quartz/tests/filesource.c b/dlls/quartz/tests/filesource.c index 18a9bf1499..37f8dd97cd 100644 --- a/dlls/quartz/tests/filesource.c +++ b/dlls/quartz/tests/filesource.c @@ -460,6 +460,7 @@ static void test_file_source_filter(void)
hr = IPin_QueryAccept(pin, pmt); ok(hr == S_FALSE, "Got hr %#x.\n", hr); + CoTaskMemFree(pmt);
hr = IEnumMediaTypes_Next(enum_mt, 1, &pmt, NULL); ok(hr == S_FALSE, "Got hr %#x.\n", hr);
Signed-off-by: Sven Baars sven.wine@gmail.com --- dlls/quartz/filesource.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c index 5e1880c84e..9d7aba14f8 100644 --- a/dlls/quartz/filesource.c +++ b/dlls/quartz/filesource.c @@ -149,7 +149,11 @@ static BOOL process_pattern_string(const WCHAR *pattern, HANDLE file) memset(mask, 0xff, size);
if (!(pattern = wcschr(pattern, ','))) + { + heap_free(mask); + heap_free(expect); return FALSE; + } pattern++; while (!iswxdigit(*pattern) && (*pattern != ',')) pattern++;