From 5ff8c888bc74983c79bc6c94f9d4b39b4dee8318 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Fri, 31 Mar 2017 16:09:54 -0700 Subject: Use PartitionFreeGeneric, not PartitionFree, for JS ArrayBuffers. BUG=pdfium:681 Change-Id: Ide52764c7c7e8833c581dbc9d41ed875faa2c2bc Reviewed-on: https://pdfium-review.googlesource.com/3555 Commit-Queue: Tom Sepez Reviewed-by: Tom Sepez --- fxjs/fxjs_v8.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fxjs/fxjs_v8.cpp b/fxjs/fxjs_v8.cpp index 9c1c3e84f3..10aa51395e 100644 --- a/fxjs/fxjs_v8.cpp +++ b/fxjs/fxjs_v8.cpp @@ -161,7 +161,8 @@ void* FXJS_ArrayBufferAllocator::AllocateUninitialized(size_t length) { } void FXJS_ArrayBufferAllocator::Free(void* data, size_t length) { - pdfium::base::PartitionFree(data); + pdfium::base::PartitionFreeGeneric(gArrayBufferPartitionAllocator.root(), + data); } void V8TemplateMapTraits::Dispose(v8::Isolate* isolate, -- cgit v1.2.3