Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: fpdfsdk/src/fpdfview.cpp

Issue 372473003: Remove custom memory manager (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Change malloc to calloc Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/src/fpdfoom.cpp ('k') | pdfium.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/fpdfview.cpp
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp
index a5ba796158705184300e27a699a48ce64c4b02f6..10eaf5d980df7f294ab7527482931d49f1f8f57a 100644
--- a/fpdfsdk/src/fpdfview.cpp
+++ b/fpdfsdk/src/fpdfview.cpp
@@ -96,9 +96,6 @@ FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy)
CPDF_ModuleMgr* g_pModuleMgr = NULL;
#else
CCodec_ModuleMgr* g_pCodecModule = NULL;
-#ifdef _FXSDK_OPENSOURCE_
- FXMEM_FoxitMgr* g_pFoxitMgr = NULL;
-#endif
#endif
//extern CPDFSDK_FormFillApp* g_pFormFillApp;
@@ -161,9 +158,6 @@ DLLEXPORT void STDCALL FPDF_InitLibrary(FX_LPVOID hInstance)
g_pModuleMgr->InitDesktop();
#endif
#else
-#ifdef _FXSDK_OPENSOURCE_
- g_pFoxitMgr = FXMEM_CreateMemoryMgr(1024 * 1024 * 32, TRUE);
-#endif
g_pCodecModule = CCodec_ModuleMgr::Create();
CFX_GEModule::Create();
@@ -225,7 +219,7 @@ DLLEXPORT void STDCALL FPDF_DestroyLibrary()
#ifndef _FXSDK_OPENSOURCE_
FXMEM_CollectAll(FXMEM_GetDefaultMgr());
#else
- FXMEM_DestroyFoxitMgr(g_pFoxitMgr);
+
#endif
}
« no previous file with comments | « fpdfsdk/src/fpdfoom.cpp ('k') | pdfium.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698