diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-04 23:26:06 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-05 03:31:20 +0200 |
commit | 474794432e854ac3838eab152bb8ab25f3b4fad0 (patch) | |
tree | 31e562d0c2c3cd4f6a1695aef0a3e363da453101 | |
parent | 9f13bacf281aa07da04c9709b62fe0dead21b2c8 (diff) |
a w
-rw-r--r-- | compat/borrowed-ptr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/borrowed-ptr.cpp b/compat/borrowed-ptr.cpp index a73b869f..e66f31bc 100644 --- a/compat/borrowed-ptr.cpp +++ b/compat/borrowed-ptr.cpp @@ -23,7 +23,8 @@ void control_block::decrement(control_block*& blk) noexcept blk->free_ptr(); delete blk; } - blk = nullptr; + //blk = nullptr; + blk = (control_block*)-1; } #ifdef __clang__ |