mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-24 04:15:11 +00:00
util-memory: Don't use _dbg versions for aligned_alloc/free
This commit is contained in:
parent
5e9f113553
commit
9f91039ca0
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue