Commit 7ed4810a authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

dwrite: Fix some memory leaks (Coverity).

parent 0737c3c2
......@@ -4484,7 +4484,10 @@ HRESULT create_font_collection(IDWriteFactory7 *factory, IDWriteFontFileEnumerat
}
if (FAILED(hr))
{
release_font_data(font_data);
break;
}
}
IDWriteFontFileStream_Release(stream);
......
......@@ -1590,6 +1590,7 @@ static HRESULT create_system_path_list(WCHAR ***ret, unsigned int *ret_count)
index++;
}
heap_free(value);
heap_free(name);
*ret = paths;
......
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