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
commit842ed275e902c0d9eaca950860e3b15cf6aca9cc (patch)
tree3d22b33ee9f955ec19b35158f0e330d559b295d7
parentcb2a07f4d0f8c4e4dceb58e62b6c330ce2d702da (diff)
downloadscintilla-mirror-842ed275e902c0d9eaca950860e3b15cf6aca9cc.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);