diff --git a/src/ox/std/new.hpp b/src/ox/std/new.hpp index bb02360d6..5dd415408 100644 --- a/src/ox/std/new.hpp +++ b/src/ox/std/new.hpp @@ -61,6 +61,7 @@ class MallocaPtr { m_size = other.m_size; m_val = other.m_val; other.m_size = 0; + other.m_val = nullptr; } inline MallocaPtr(std::size_t size, T *val) noexcept {