diff options
author | Chris Palmer <palmer@chromium.org> | 2017-03-31 16:05:09 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-31 23:35:51 +0000 |
commit | 3cf9ec4e29ddb19f1ade22e1de5ad6b0e9829fd8 (patch) | |
tree | 0467ab2219b0da28158674bfb2374ba5df4e0e3b /core | |
parent | 5ff8c888bc74983c79bc6c94f9d4b39b4dee8318 (diff) | |
download | pdfium-3cf9ec4e29ddb19f1ade22e1de5ad6b0e9829fd8.tar.xz |
Use PartitionFreeGeneric for the strings partition, not PartitionFree.
BUG=pdfium:681
Change-Id: Ic40ed9409855097d823659f710cdf7cd96a21e83
Reviewed-on: https://pdfium-review.googlesource.com/3554
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/fxcrt/cfx_string_data_template.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fxcrt/cfx_string_data_template.h b/core/fxcrt/cfx_string_data_template.h index 33013fde33..5167e31b5a 100644 --- a/core/fxcrt/cfx_string_data_template.h +++ b/core/fxcrt/cfx_string_data_template.h @@ -55,7 +55,8 @@ class CFX_StringDataTemplate { void Retain() { ++m_nRefs; } void Release() { if (--m_nRefs <= 0) - pdfium::base::PartitionFree(this); + pdfium::base::PartitionFreeGeneric(gStringPartitionAllocator.root(), + this); } bool CanOperateInPlace(FX_STRSIZE nTotalLen) const { |