dwrite: Fix streams and files pointer arrays leak (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2015-10-29 10:20:53 +03:00 committed by Alexandre Julliard
parent 4e88852415
commit d829c50cbe
1 changed files with 2 additions and 0 deletions

View File

@ -431,6 +431,8 @@ static ULONG WINAPI dwritefontface_Release(IDWriteFontFace2 *iface)
if (This->files[i])
IDWriteFontFile_Release(This->files[i]);
}
heap_free(This->streams);
heap_free(This->files);
for (i = 0; i < sizeof(This->glyphs)/sizeof(This->glyphs[0]); i++)
heap_free(This->glyphs[i]);