From 3cf9ec4e29ddb19f1ade22e1de5ad6b0e9829fd8 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Fri, 31 Mar 2017 16:05:09 -0700 Subject: 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 Reviewed-by: Tom Sepez --- core/fxcrt/cfx_string_data_template.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3