summaryrefslogtreecommitdiffstats
path: root/vcl/win/gdi
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/win/gdi')
-rw-r--r--vcl/win/gdi/winlayout.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 691901eac2cf..31168bc78909 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -3673,8 +3673,10 @@ bool D2DWriteTextOutRenderer::InitModules()
void D2DWriteTextOutRenderer::CleanupModules()
{
- if (mmD2d1) FreeLibrary(mmD2d1);
- if (mmDWrite) FreeLibrary(mmDWrite);
+ if (mmD2d1)
+ FreeLibrary(mmD2d1);
+ if (mmDWrite)
+ FreeLibrary(mmDWrite);
mmD2d1 = nullptr;
mmDWrite = nullptr;
@@ -3741,10 +3743,14 @@ D2DWriteTextOutRenderer::D2DWriteTextOutRenderer()
D2DWriteTextOutRenderer::~D2DWriteTextOutRenderer()
{
- if (mpRT) mpRT->Release();
- if (mpGdiInterop) mpGdiInterop->Release();
- if (mpDWriteFactory) mpDWriteFactory->Release();
- if (mpD2DFactory) mpD2DFactory->Release();
+ if (mpRT)
+ mpRT->Release();
+ if (mpGdiInterop)
+ mpGdiInterop->Release();
+ if (mpDWriteFactory)
+ mpDWriteFactory->Release();
+ if (mpD2DFactory)
+ mpD2DFactory->Release();
CleanupModules();
}