summaryrefslogtreecommitdiff
path: root/xfa/fde/fde_render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fde/fde_render.cpp')
-rw-r--r--xfa/fde/fde_render.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/xfa/fde/fde_render.cpp b/xfa/fde/fde_render.cpp
index 81e5b1b259..7c989a0c6b 100644
--- a/xfa/fde/fde_render.cpp
+++ b/xfa/fde/fde_render.cpp
@@ -105,10 +105,8 @@ void CFDE_RenderContext::StopRender() {
m_pIterator->Release();
m_pIterator = nullptr;
}
- if (m_pBrush) {
- delete m_pBrush;
- m_pBrush = nullptr;
- }
+ delete m_pBrush;
+ m_pBrush = nullptr;
FX_Free(m_pCharPos);
m_pCharPos = nullptr;
m_iCharPosCount = 0;