diff options
Diffstat (limited to 'core/fxcrt/fx_memory.cpp')
-rw-r--r-- | core/fxcrt/fx_memory.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fxcrt/fx_memory.cpp b/core/fxcrt/fx_memory.cpp index 6a135ae0f8..006e03031e 100644 --- a/core/fxcrt/fx_memory.cpp +++ b/core/fxcrt/fx_memory.cpp @@ -35,8 +35,9 @@ void* FXMEM_DefaultCalloc(size_t num_elems, size_t byte_size) { } void* FXMEM_DefaultRealloc(void* pointer, size_t new_size) { - return pdfium::base::PartitionReallocGeneric( - gGeneralPartitionAllocator.root(), pointer, new_size, "GeneralPartition"); + return pdfium::base::PartitionReallocGenericFlags( + gGeneralPartitionAllocator.root(), pdfium::base::PartitionAllocReturnNull, + pointer, new_size, "GeneralPartition"); } void FXMEM_DefaultFree(void* pointer) { |