[ox/std] Make MallocaPtr call destructor
This commit is contained in:
Vendored
+1
@@ -102,6 +102,7 @@ class MallocaPtr {
|
||||
}
|
||||
|
||||
constexpr ~MallocaPtr() noexcept {
|
||||
m_val->~T();
|
||||
if (m_onHeap && m_val) {
|
||||
delete[] reinterpret_cast<uint8_t*>(m_val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user