diff options
author | Chris Robinson <[email protected]> | 2018-11-04 15:21:03 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-04 15:21:03 -0800 |
commit | 26f7007507b8a25cb56cb243c232f18ffc901a89 (patch) | |
tree | 0c60c3370f40f50fa8234f9275efa4499b246aaa /Alc | |
parent | 087fdd3ca983da6b0727adaa33f7519abf0ed296 (diff) |
Allocate the appropriate amount in the aligned allocator
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/bformatdec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<T*>(al_malloc(alignment, n)); } + { return reinterpret_cast<T*>(al_malloc(alignment, n*sizeof(T))); } void deallocate(pointer p, size_type) { al_free(p); } |