summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/fxcrt/fx_memory.cpp2
-rw-r--r--core/fxcrt/fx_memory.h2
-rw-r--r--fpdfsdk/fpdfview.cpp2
-rw-r--r--testing/unit_test_main.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/core/fxcrt/fx_memory.cpp b/core/fxcrt/fx_memory.cpp
index 2807139aa2..2afcbcecee 100644
--- a/core/fxcrt/fx_memory.cpp
+++ b/core/fxcrt/fx_memory.cpp
@@ -11,7 +11,7 @@
pdfium::base::PartitionAllocatorGeneric gArrayBufferPartitionAllocator;
pdfium::base::PartitionAllocatorGeneric gStringPartitionAllocator;
-void FXMEM_InitalizePartitionAlloc() {
+void FXMEM_InitializePartitionAlloc() {
static bool s_gPartitionAllocatorsInitialized = false;
if (!s_gPartitionAllocatorsInitialized) {
pdfium::base::PartitionAllocGlobalInit(FX_OutOfMemoryTerminate);
diff --git a/core/fxcrt/fx_memory.h b/core/fxcrt/fx_memory.h
index 684f2f2646..9a7de4cc2b 100644
--- a/core/fxcrt/fx_memory.h
+++ b/core/fxcrt/fx_memory.h
@@ -32,7 +32,7 @@ void FXMEM_DefaultFree(void* pointer, int flags);
extern pdfium::base::PartitionAllocatorGeneric gArrayBufferPartitionAllocator;
extern pdfium::base::PartitionAllocatorGeneric gStringPartitionAllocator;
-void FXMEM_InitalizePartitionAlloc();
+void FXMEM_InitializePartitionAlloc();
NEVER_INLINE void FX_OutOfMemoryTerminate();
inline void* FX_SafeRealloc(void* ptr, size_t num_members, size_t member_size) {
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp
index 72ef75ce07..616402e564 100644
--- a/fpdfsdk/fpdfview.cpp
+++ b/fpdfsdk/fpdfview.cpp
@@ -371,7 +371,7 @@ FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* cfg) {
if (g_pCodecModule)
return;
- FXMEM_InitalizePartitionAlloc();
+ FXMEM_InitializePartitionAlloc();
g_pCodecModule = new CCodec_ModuleMgr();
CFX_GEModule* pModule = CFX_GEModule::Get();
diff --git a/testing/unit_test_main.cpp b/testing/unit_test_main.cpp
index d8076abec6..f57ec3c555 100644
--- a/testing/unit_test_main.cpp
+++ b/testing/unit_test_main.cpp
@@ -9,7 +9,7 @@
// Can't use gtest-provided main since we need to initialize partition
// alloc before invoking any test.
int main(int argc, char** argv) {
- FXMEM_InitalizePartitionAlloc();
+ FXMEM_InitializePartitionAlloc();
testing::InitGoogleTest(&argc, argv);
testing::InitGoogleMock(&argc, argv);
return RUN_ALL_TESTS();