diff options
-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__ |