From c4188fc16fdae8a79794f97001ffa09e387104a5 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 25 Apr 2014 09:37:05 +1000 Subject: Delete factories when shutting down to avoid system messages frommm DXGI. --- win32/PlatWin.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index a97012e6f..53b889896 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -3258,6 +3258,15 @@ void Platform_Finalise() { customClearTypeRenderingParams->Release(); customClearTypeRenderingParams = 0; } + if (pIDWriteFactory) { + pIDWriteFactory->Release(); + pIDWriteFactory = 0; + } + if (pD2DFactory) { + pD2DFactory->Release(); + pD2DFactory = 0; + } + #endif if (reverseArrowCursor != NULL) ::DestroyCursor(reverseArrowCursor); -- cgit v1.2.3