mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 01:34:47 +00:00
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:
parent
0737c3c215
commit
7ed4810a0e
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue