Commit 86af1acf authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

dwrite: Check if family is set before releasing.

parent b9cfb927
...@@ -642,7 +642,7 @@ static ULONG WINAPI dwritefont_Release(IDWriteFont *iface) ...@@ -642,7 +642,7 @@ static ULONG WINAPI dwritefont_Release(IDWriteFont *iface)
if (!ref) if (!ref)
{ {
if (This->face) IDWriteFontFace_Release(This->face); if (This->face) IDWriteFontFace_Release(This->face);
IDWriteFontFamily_Release(This->family); if (This->family) IDWriteFontFamily_Release(This->family);
heap_free(This->data->facename); heap_free(This->data->facename);
_free_fontface_data(This->data->face_data); _free_fontface_data(This->data->face_data);
heap_free(This->data); heap_free(This->data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment