From 7726a581626bbb72d6ab294ae1adbad4ca10dfb0 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Thu, 22 Jun 2017 10:10:17 -0700 Subject: Add a |gGeneralPartitionAllocator| and use it in the |FX_*Alloc| wrappers. BUG=pdfium:690 Change-Id: I922279e4bdc8b411f47f49798155e8f9118c1396 Reviewed-on: https://pdfium-review.googlesource.com/6552 Commit-Queue: Chris Palmer Reviewed-by: Lei Zhang --- samples/image_diff.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'samples/image_diff.cc') diff --git a/samples/image_diff.cc b/samples/image_diff.cc index 70c74c951c..21460f5a62 100644 --- a/samples/image_diff.cc +++ b/samples/image_diff.cc @@ -19,6 +19,7 @@ #include #include +#include "core/fxcrt/fx_memory.h" #include "samples/image_diff_png.h" #include "third_party/base/logging.h" #include "third_party/base/numerics/safe_conversions.h" @@ -312,6 +313,8 @@ int DiffImages(const std::string& file1, } int main(int argc, const char* argv[]) { + FXMEM_InitializePartitionAlloc(); + bool histograms = false; bool produce_diff_image = false; std::string filename1; -- cgit v1.2.3