dwrite: Avoid triggering an exception on DLL_PROCESS_DETACH.
This commit is contained in:
parent
500da7def6
commit
1ea524a861
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue