dwrite: Avoid triggering an exception on DLL_PROCESS_DETACH.

This commit is contained in:
Dmitry Timoshkov 2013-01-28 14:37:36 +08:00 committed by Alexandre Julliard
parent 500da7def6
commit 1ea524a861
1 changed files with 2 additions and 1 deletions

View File

@ -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)