diff options
Diffstat (limited to 'third_party/lcms/src/cmserr.c')
-rw-r--r-- | third_party/lcms/src/cmserr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/third_party/lcms/src/cmserr.c b/third_party/lcms/src/cmserr.c index 3c3848b2a2..69b0550a41 100644 --- a/third_party/lcms/src/cmserr.c +++ b/third_party/lcms/src/cmserr.c @@ -75,13 +75,13 @@ cmsBool _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase* Plugi // Generic allocate void* CMSEXPORT _cmsMalloc(cmsContext ContextID, cmsUInt32Number size) { - return FXMEM_DefaultAlloc(size, 1); + return FXMEM_DefaultAlloc(size); } // Generic allocate & zero void* CMSEXPORT _cmsMallocZero(cmsContext ContextID, cmsUInt32Number size) { - void* p = FXMEM_DefaultAlloc(size, 1); + void* p = FXMEM_DefaultAlloc(size); if (p) memset(p, 0, size); return p; } @@ -99,19 +99,19 @@ void* CMSEXPORT _cmsCalloc(cmsContext ContextID, cmsUInt32Number num, cmsUInt32N // Generic reallocate void* CMSEXPORT _cmsRealloc(cmsContext ContextID, void* Ptr, cmsUInt32Number size) { - return FXMEM_DefaultRealloc(Ptr, size, 1); + return FXMEM_DefaultRealloc(Ptr, size); } // Generic free memory void CMSEXPORT _cmsFree(cmsContext ContextID, void* Ptr) { - if (Ptr != NULL) FXMEM_DefaultFree(Ptr, 0); + if (Ptr != NULL) FXMEM_DefaultFree(Ptr); } // Generic block duplication void* CMSEXPORT _cmsDupMem(cmsContext ContextID, const void* Org, cmsUInt32Number size) { - void* p = FXMEM_DefaultAlloc(size, 1); + void* p = FXMEM_DefaultAlloc(size); memmove(p, Org, size); return p; } |