Dmitry Timoshkov : dwrite: Avoid triggering an exception on DLL_PROCESS_DETACH.
Module: wine Branch: master Commit: 1ea524a861f94e09a609507d6b6d0079ff87dae2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1ea524a861f94e09a609507d6b... Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Mon Jan 28 14:37:36 2013 +0800 dwrite: Avoid triggering an exception on DLL_PROCESS_DETACH. --- dlls/dwrite/font.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c index 0ec581b..191397e 100644 --- a/dlls/dwrite/font.c +++ b/dlls/dwrite/font.c @@ -793,7 +793,8 @@ static void release_font_collection(IDWriteFontCollection *iface) void release_system_fontcollection(void) { - release_font_collection(system_collection); + if (system_collection) + release_font_collection(system_collection); } HRESULT get_system_fontcollection(IDWriteFontCollection **collection)
participants (1)
-
Alexandre Julliard