summaryrefslogtreecommitdiffhomepage
path: root/compat/safe-ptr.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-16 01:21:59 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-16 01:21:59 +0100
commitf3e0c75848e1094bcbba5020750dd7fcaf0946be (patch)
treeb778fbe41b2dbd4dcc0598c05503b03f67dc5067 /compat/safe-ptr.hpp
parent785293f4bf1beec65d23be0612e545e4c26ec366 (diff)
a
Diffstat (limited to 'compat/safe-ptr.hpp')
-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