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

(synced from 956415a6a2)
This commit is contained in:
2018-05-31 22:38:36 -05:00
parent ebd499afb4
commit f3b95d15ed
+1
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 {