diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c index 00353b71ea0..4088548a4d9 100644 --- a/dlls/dwrite/font.c +++ b/dlls/dwrite/font.c @@ -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);