aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index f18d36e4..80d8e0e4 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -150,8 +150,10 @@ void *al_calloc(size_t alignment, size_t size)
void al_free(void *ptr)
{
-#if defined(HAVE_ALIGNED_ALLOC) || defined(HAVE_POSIX_MEMALIGN) || defined(HAVE__ALIGNED_MALLOC)
+#if defined(HAVE_ALIGNED_ALLOC) || defined(HAVE_POSIX_MEMALIGN)
free(ptr);
+#elif defined(HAVE__ALIGNED_MALLOC)
+ _aligned_free(ptr);
#else
if(ptr != NULL)
{