aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-04-25 09:37:05 +1000
committerNeil <nyamatongwe@gmail.com>2014-04-25 09:37:05 +1000
commitc4188fc16fdae8a79794f97001ffa09e387104a5 (patch)
tree468cfcfd700ab5091a9fd5914957c86802a71459
parentf1ab14ff9b1ed427a6d3eaca19d3ecd9bbddf45f (diff)
downloadscintilla-mirror-c4188fc16fdae8a79794f97001ffa09e387104a5.tar.gz
Delete factories when shutting down to avoid system messages frommm DXGI.
-rw-r--r--win32/PlatWin.cxx9
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);