Index: base/memory/weak_ptr.h |
diff --git a/base/memory/weak_ptr.h b/base/memory/weak_ptr.h |
index c0ba7f51c22691bda4c527b102ccfbc9fca35cb5..b66f02431aac2aa48bcf9babc396de3d8e055095 100644 |
--- a/base/memory/weak_ptr.h |
+++ b/base/memory/weak_ptr.h |
@@ -171,9 +171,9 @@ class WeakPtr : public internal::WeakPtrBase { |
T* get() const { return ref_.is_valid() ? ptr_ : NULL; } |
operator T*() const { return get(); } |
- T* operator*() const { |
+ T& operator*() const { |
DCHECK(get() != NULL); |
- return get(); |
+ return *get(); |
} |
T* operator->() const { |
DCHECK(get() != NULL); |