[ox/std] Fix MallocaPtr's move constructor to null out other's m_val

This commit is contained in:
Gary Talent 2018-05-31 22:38:36 -05:00
parent 8e7fb4394b
commit 956415a6a2

View File

@ -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 {