Signed-off-by: Sven Baars sbaars@codeweavers.com --- dlls/dwrite/font.c | 3 +++ dlls/dwrite/main.c | 1 + 2 files changed, 4 insertions(+)
diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c index 44a61aba1ef..d25ba2dd06b 100644 --- a/dlls/dwrite/font.c +++ b/dlls/dwrite/font.c @@ -4484,7 +4484,10 @@ HRESULT create_font_collection(IDWriteFactory7 *factory, IDWriteFontFileEnumerat }
if (FAILED(hr)) + { + release_font_data(font_data); break; + } }
IDWriteFontFileStream_Release(stream); diff --git a/dlls/dwrite/main.c b/dlls/dwrite/main.c index 825e323b468..2a0b69400f4 100644 --- a/dlls/dwrite/main.c +++ b/dlls/dwrite/main.c @@ -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;