From 9f91039ca048f667613e2256767a295a752816d2 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Mon, 9 Apr 2018 13:27:51 +0200 Subject: [PATCH] util-memory: Don't use _dbg versions for aligned_alloc/free --- source/util-memory.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/util-memory.cpp b/source/util-memory.cpp index c97efc9b..6a957ff8 100644 --- a/source/util-memory.cpp +++ b/source/util-memory.cpp @@ -24,11 +24,7 @@ void* util::malloc_aligned(size_t align, size_t size) { #ifdef USE_STD_ALLOC_FREE #if defined(_MSC_VER) -#ifdef DEBUG - return _aligned_malloc_dbg(size, align); -#else return _aligned_malloc(size, align); -#endif #else return aligned_malloc(align, size); #endif @@ -53,11 +49,7 @@ void* util::malloc_aligned(size_t align, size_t size) { void util::free_aligned(void* mem) { #ifdef USE_STD_ALLOC_FREE #if defined(_MSC_VER) -#ifdef DEBUG - _aligned_free_dbg(mem); -#else _aligned_free(mem); -#endif #else free(mem); #endif