summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Palmer <palmer@chromium.org>2017-03-31 16:09:54 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-03-31 23:35:00 +0000
commit5ff8c888bc74983c79bc6c94f9d4b39b4dee8318 (patch)
tree35f300ffdeded9f8399203f0cfd58230b8505894
parenta2af7de2e32e6938dd825acb8df775b11ec95510 (diff)
downloadpdfium-5ff8c888bc74983c79bc6c94f9d4b39b4dee8318.tar.xz
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 <tsepez@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
-rw-r--r--fxjs/fxjs_v8.cpp3
1 files changed, 2 insertions, 1 deletions
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,