diff --git a/src/misc/debugPtr.cpp b/src/misc/debugPtr.cpp index ac8043b..5a3347c 100644 --- a/src/misc/debugPtr.cpp +++ b/src/misc/debugPtr.cpp @@ -57,7 +57,9 @@ void shared_ptr_base::track_clear() track->refs.erase(this); } track.reset(); +#ifndef EXCEPT_USE_NONE m_depth = 0; +#endif } void shared_ptr_base::swap(shared_ptr_base &o) @@ -82,7 +84,9 @@ void shared_ptr_base::swap(shared_ptr_base &o) void shared_ptr_base::snap_stack() { if(!track) { +#ifndef EXCEPT_USE_NONE m_depth = 0; +#endif return; } #if defined(EXCEPT_USE_BACKTRACE) @@ -98,7 +102,9 @@ void shared_ptr_base::snap_stack() void shared_ptr_base::show_stack(std::ostream& strm) const { strm<<"ptr "<