From 86af1acff4db17489ca6d7ca1c4c09547e0903e9 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Wed, 3 Sep 2014 07:27:00 -0500 Subject: [PATCH] dwrite: Check if family is set before releasing. --- dlls/dwrite/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);