dwrite: Fix some memory leaks (Coverity).

Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2021-04-24 13:24:06 +02:00 committed by Alexandre Julliard
parent 0737c3c215
commit 7ed4810a0e
2 changed files with 4 additions and 0 deletions

View file

@ -4484,7 +4484,10 @@ HRESULT create_font_collection(IDWriteFactory7 *factory, IDWriteFontFileEnumerat
}
if (FAILED(hr))
{
release_font_data(font_data);
break;
}
}
IDWriteFontFileStream_Release(stream);

View file

@ -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;