Index: base/memory/weak_ptr.h |
diff --git a/base/memory/weak_ptr.h b/base/memory/weak_ptr.h |
index 7006fb63e0981468e30ac2c631e8d6c1ed645ef7..49309acd6abb12014a338da00fc248189f8414b1 100644 |
--- a/base/memory/weak_ptr.h |
+++ b/base/memory/weak_ptr.h |
@@ -133,7 +133,7 @@ class BASE_EXPORT WeakReferenceOwner { |
// Indicates that this object will be used on another thread from now on. |
void DetachFromThread() { |
- if (flag_) flag_->DetachFromThread(); |
+ if (flag_.get()) flag_->DetachFromThread(); |
} |
private: |