dwrite: Fix font data array leak on list release (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-05-29 18:37:14 +03:00 committed by Alexandre Julliard
parent 5eca697aba
commit c43a3d48af
1 changed files with 1 additions and 0 deletions

View File

@ -1629,6 +1629,7 @@ static ULONG WINAPI dwritefontlist_Release(IDWriteFontList1 *iface)
for (i = 0; i < This->font_count; i++) for (i = 0; i < This->font_count; i++)
release_font_data(This->fonts[i]); release_font_data(This->fonts[i]);
IDWriteFontFamily1_Release(This->family); IDWriteFontFamily1_Release(This->family);
heap_free(This->fonts);
heap_free(This); heap_free(This);
} }