Index: base/memory/ref_counted.cc |
diff --git a/base/memory/ref_counted.cc b/base/memory/ref_counted.cc |
index 31ad5098cd0fdebd7407b09dfdedca2f736e2693..b2b3b570c3c30e502077b56e9678b98ff62a73d9 100644 |
--- a/base/memory/ref_counted.cc |
+++ b/base/memory/ref_counted.cc |
@@ -51,6 +51,12 @@ bool RefCountedBase::Release() const { |
return false; |
} |
+void RefCountedBase::ClearInDtor() const { |
+#ifndef NDEBUG |
+ in_dtor_ = false; |
+#endif |
+} |
+ |
bool RefCountedThreadSafeBase::HasOneRef() const { |
return AtomicRefCountIsOne( |
&const_cast<RefCountedThreadSafeBase*>(this)->ref_count_); |