summaryrefslogtreecommitdiff
path: root/xfa/fxfa
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa')
-rw-r--r--xfa/fxfa/app/xfa_checksum.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/xfa/fxfa/app/xfa_checksum.cpp b/xfa/fxfa/app/xfa_checksum.cpp
index 1641816550..fab14c9b17 100644
--- a/xfa/fxfa/app/xfa_checksum.cpp
+++ b/xfa/fxfa/app/xfa_checksum.cpp
@@ -161,10 +161,8 @@ FX_BOOL CXFA_ChecksumContext::UpdateChecksum(IFX_FileRead* pSrcFile,
}
void CXFA_ChecksumContext::FinishChecksum() {
- if (m_pSAXReader) {
- m_pSAXReader->Release();
- m_pSAXReader = NULL;
- }
+ delete m_pSAXReader;
+ m_pSAXReader = nullptr;
if (m_pByteContext) {
uint8_t digest[20];
FXSYS_memset(digest, 0, 20);