From f3b95d15eda5e4a03d1b9ca912f893a6c1f01f75 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 (synced from 956415a6a2c16a11374c80fdf7476c371378f749) --- src/ox/std/new.hpp | 1 + 1 file changed, 1 insertion(+) 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 {