dwrite: Check if family is set before releasing.

This commit is contained in:
Aric Stewart 2014-09-03 07:27:00 -05:00 committed by Alexandre Julliard
parent b9cfb927ec
commit 86af1acff4
1 changed files with 1 additions and 1 deletions

View File

@ -642,7 +642,7 @@ static ULONG WINAPI dwritefont_Release(IDWriteFont *iface)
if (!ref)
{
if (This->face) IDWriteFontFace_Release(This->face);
IDWriteFontFamily_Release(This->family);
if (This->family) IDWriteFontFamily_Release(This->family);
heap_free(This->data->facename);
_free_fontface_data(This->data->face_data);
heap_free(This->data);