[ox/std] Fix MallocaPtr's move constructor to null out other's m_val
This commit is contained in:
parent
8e7fb4394b
commit
956415a6a2
1
deps/ox/src/ox/std/new.hpp
vendored
1
deps/ox/src/ox/std/new.hpp
vendored
@ -61,6 +61,7 @@ class MallocaPtr {
|
|||||||
m_size = other.m_size;
|
m_size = other.m_size;
|
||||||
m_val = other.m_val;
|
m_val = other.m_val;
|
||||||
other.m_size = 0;
|
other.m_size = 0;
|
||||||
|
other.m_val = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline MallocaPtr(std::size_t size, T *val) noexcept {
|
inline MallocaPtr(std::size_t size, T *val) noexcept {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user