Commit 1ea524a8 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

dwrite: Avoid triggering an exception on DLL_PROCESS_DETACH.

parent 500da7de
...@@ -793,7 +793,8 @@ static void release_font_collection(IDWriteFontCollection *iface) ...@@ -793,7 +793,8 @@ static void release_font_collection(IDWriteFontCollection *iface)
void release_system_fontcollection(void) void release_system_fontcollection(void)
{ {
release_font_collection(system_collection); if (system_collection)
release_font_collection(system_collection);
} }
HRESULT get_system_fontcollection(IDWriteFontCollection **collection) HRESULT get_system_fontcollection(IDWriteFontCollection **collection)
......
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