diff options
Diffstat (limited to 'source/blender/blenkernel/intern/CCGSubSurf.c')
-rw-r--r-- | source/blender/blenkernel/intern/CCGSubSurf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/CCGSubSurf.c b/source/blender/blenkernel/intern/CCGSubSurf.c index 9e5d4afffe2..651979cd5cd 100644 --- a/source/blender/blenkernel/intern/CCGSubSurf.c +++ b/source/blender/blenkernel/intern/CCGSubSurf.c @@ -213,15 +213,15 @@ static int _ehashIterator_isStopped(EHashIterator *ehi) static void *_stdAllocator_alloc(CCGAllocatorHDL UNUSED(a), int numBytes) { - return malloc(numBytes); + return MEM_mallocN(numBytes, "CCG standard alloc"); } static void *_stdAllocator_realloc(CCGAllocatorHDL UNUSED(a), void *ptr, int newSize, int UNUSED(oldSize)) { - return realloc(ptr, newSize); + return MEM_reallocN(ptr, newSize); } static void _stdAllocator_free(CCGAllocatorHDL UNUSED(a), void *ptr) { - free(ptr); + MEM_freeN(ptr); } static CCGAllocatorIFC *_getStandardAllocatorIFC(void) |