summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
Diffstat (limited to 'compat')
-rw-r--r--compat/safe-ptr.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/compat/safe-ptr.hpp b/compat/safe-ptr.hpp
index f6b0b260..5f513f82 100644
--- a/compat/safe-ptr.hpp
+++ b/compat/safe-ptr.hpp
@@ -24,6 +24,7 @@ public:
explicit safe_ptr(T*&& ptr) noexcept: ptr{ptr}
{
fm_assert(ptr != nullptr);
+ ptr = nullptr;
}
~safe_ptr() noexcept