diff options
author | tsepez <tsepez@chromium.org> | 2016-05-04 06:13:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-04 06:13:45 -0700 |
commit | 2a14bde1011a5d374d1109fd83f59a8ff67c162e (patch) | |
tree | e11df29fe4c82e4b502884f5bec8618dfec0491d /xfa/fee/fde_txtedtbuf.cpp | |
parent | 4c133f3bce38415597a011f79385ec130c8adbe8 (diff) | |
download | pdfium-2a14bde1011a5d374d1109fd83f59a8ff67c162e.tar.xz |
Replace IFX_MemoryAllocator::Release() with delete.
All Release() did was invoke delete. Add some "overrides"
while we're at it.
Review-Url: https://codereview.chromium.org/1951573002
Diffstat (limited to 'xfa/fee/fde_txtedtbuf.cpp')
-rw-r--r-- | xfa/fee/fde_txtedtbuf.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xfa/fee/fde_txtedtbuf.cpp b/xfa/fee/fde_txtedtbuf.cpp index 1369d55be5..c9ad39252b 100644 --- a/xfa/fee/fde_txtedtbuf.cpp +++ b/xfa/fee/fde_txtedtbuf.cpp @@ -122,7 +122,7 @@ void CFDE_TxtEdtBuf::Release() { } CFDE_TxtEdtBuf::~CFDE_TxtEdtBuf() { Clear(TRUE); - m_pAllocator->Release(); + delete m_pAllocator; m_Chunks.RemoveAll(); } FX_BOOL CFDE_TxtEdtBuf::SetChunkSize(int32_t nChunkSize) { @@ -362,10 +362,8 @@ void CFDE_TxtEdtBuf::ResetChunkBuffer(int32_t nDefChunkCount, int32_t nChunkSize) { ASSERT(nChunkSize); ASSERT(nDefChunkCount); - if (m_pAllocator) { - m_pAllocator->Release(); - m_pAllocator = NULL; - } + delete m_pAllocator; + m_pAllocator = nullptr; m_Chunks.RemoveAll(); m_nChunkSize = nChunkSize; int32_t nChunkLength = |