diff options
author | Neil <nyamatongwe@gmail.com> | 2014-04-25 09:37:05 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-04-25 09:37:05 +1000 |
commit | 842ed275e902c0d9eaca950860e3b15cf6aca9cc (patch) | |
tree | 3d22b33ee9f955ec19b35158f0e330d559b295d7 | |
parent | cb2a07f4d0f8c4e4dceb58e62b6c330ce2d702da (diff) | |
download | scintilla-mirror-842ed275e902c0d9eaca950860e3b15cf6aca9cc.tar.gz |
Delete factories when shutting down to avoid system messages frommm DXGI.
-rw-r--r-- | win32/PlatWin.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
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); |