From cb9d61757d423d34eac3487dac65e0c885560545 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 31 Mar 2021 17:10:15 +0200 Subject: [PATCH] Minor change, for consistency only --- src/sfizz/utility/MemoryHelpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/utility/MemoryHelpers.h b/src/sfizz/utility/MemoryHelpers.h index c2ba4511..44dc3fa3 100644 --- a/src/sfizz/utility/MemoryHelpers.h +++ b/src/sfizz/utility/MemoryHelpers.h @@ -36,7 +36,7 @@ void alignedDelete(T* ptr) { using allocator = jsl::aligned_allocator; if (ptr) { - ptr->~T(); + allocator().destroy(ptr); allocator().deallocate(ptr, sizeof(T)); } }