Aric Stewart : dwrite: Check if family is set before releasing.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Sep 3 15:09:21 CDT 2014


Module: wine
Branch: master
Commit: 86af1acff4db17489ca6d7ca1c4c09547e0903e9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=86af1acff4db17489ca6d7ca1c4c09547e0903e9

Author: Aric Stewart <aric at codeweavers.com>
Date:   Wed Sep  3 07:27:00 2014 -0500

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 00353b7..4088548 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);




More information about the wine-cvs mailing list