From 87416e13ee8e941bfb5066d8626931ea56b912a3 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 20 May 2024 02:46:19 -0500 Subject: [PATCH] [ox/std] Make MallocaPtr call destructor --- deps/ox/src/ox/std/new.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/deps/ox/src/ox/std/new.hpp b/deps/ox/src/ox/std/new.hpp index df4a8276..e631d0c6 100644 --- a/deps/ox/src/ox/std/new.hpp +++ b/deps/ox/src/ox/std/new.hpp @@ -102,6 +102,7 @@ class MallocaPtr { } constexpr ~MallocaPtr() noexcept { + m_val->~T(); if (m_onHeap && m_val) { delete[] reinterpret_cast(m_val); }