diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-16 01:21:59 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-16 01:21:59 +0100 |
| commit | f3e0c75848e1094bcbba5020750dd7fcaf0946be (patch) | |
| tree | b778fbe41b2dbd4dcc0598c05503b03f67dc5067 /compat | |
| parent | 785293f4bf1beec65d23be0612e545e4c26ec366 (diff) | |
a
Diffstat (limited to 'compat')
| -rw-r--r-- | compat/safe-ptr.hpp | 1 |
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 |
