From 26f7007507b8a25cb56cb243c232f18ffc901a89 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 4 Nov 2018 15:21:03 -0800 Subject: [PATCH] Allocate the appropriate amount in the aligned allocator --- Alc/bformatdec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/bformatdec.cpp b/Alc/bformatdec.cpp index c9e7b567..7d1e36ff 100644 --- a/Alc/bformatdec.cpp +++ b/Alc/bformatdec.cpp @@ -119,7 +119,7 @@ public: }; pointer allocate(size_type n, const void* = nullptr) - { return reinterpret_cast(al_malloc(alignment, n)); } + { return reinterpret_cast(al_malloc(alignment, n*sizeof(T))); } void deallocate(pointer p, size_type) { al_free(p); }