diff options
author | tsepez <tsepez@chromium.org> | 2016-04-27 16:59:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-27 16:59:30 -0700 |
commit | bb0d446df18ee34504a165f3fc96fbb81b274f31 (patch) | |
tree | 9c2615b4c8a8d597f22e8504c23e2fdbf1df4de5 /xfa/fxfa/parser/xfa_script_imp.cpp | |
parent | df96690d4e3799536b981e3673d64018fa5fd037 (diff) | |
download | pdfium-bb0d446df18ee34504a165f3fc96fbb81b274f31.tar.xz |
Replace CFX_PtrArray with typesafe CFX_ArrayTemplate<>, part 3
Review-Url: https://codereview.chromium.org/1924093003
Diffstat (limited to 'xfa/fxfa/parser/xfa_script_imp.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_script_imp.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/xfa_script_imp.cpp b/xfa/fxfa/parser/xfa_script_imp.cpp index 0c8aa1a838..ea16fd1e7c 100644 --- a/xfa/fxfa/parser/xfa_script_imp.cpp +++ b/xfa/fxfa/parser/xfa_script_imp.cpp @@ -58,10 +58,8 @@ CXFA_ScriptContext::~CXFA_ScriptContext() { m_pResolveProcessor = NULL; } m_upObjectArray.RemoveAll(); - for (int32_t i = 0; i < m_CacheListArray.GetSize(); i++) { - delete ((CXFA_NodeList*)m_CacheListArray[i]); - } - m_CacheListArray.RemoveAll(); + for (int32_t i = 0; i < m_CacheListArray.GetSize(); i++) + delete m_CacheListArray[i]; } void CXFA_ScriptContext::Initialize(FXJSE_HRUNTIME hRuntime) { m_hJsRuntime = hRuntime; |