summaryrefslogtreecommitdiffstats
path: root/base/memory/weak_ptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/memory/weak_ptr.h')
-rw-r--r--base/memory/weak_ptr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/memory/weak_ptr.h b/base/memory/weak_ptr.h
index be045a6..d7c452f 100644
--- a/base/memory/weak_ptr.h
+++ b/base/memory/weak_ptr.h
@@ -251,6 +251,9 @@ class SupportsWeakPtr : public internal::SupportsWeakPtrBase {
weak_reference_owner_.DetachFromThread();
}
+ protected:
+ ~SupportsWeakPtr() {}
+
private:
internal::WeakReferenceOwner weak_reference_owner_;
DISALLOW_COPY_AND_ASSIGN(SupportsWeakPtr);