From 956415a6a2c16a11374c80fdf7476c371378f749 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 31 May 2018 22:38:36 -0500 Subject: [PATCH] [ox/std] Fix MallocaPtr's move constructor to null out other's m_val --- 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 bb02360d..5dd41540 100644 --- a/deps/ox/src/ox/std/new.hpp +++ b/deps/ox/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 {