Index: base/bind_helpers.h |
diff --git a/base/bind_helpers.h b/base/bind_helpers.h |
index c49b5b8187ae3757207b701f648efe383fa3e29a..0c96eea65e0fd01aa75dad2dbf3baeeaf6fe312e 100644 |
--- a/base/bind_helpers.h |
+++ b/base/bind_helpers.h |
@@ -145,6 +145,7 @@ |
#include "base/basictypes.h" |
#include "base/callback.h" |
+#include "base/memory/scoped_ptr.h" |
#include "base/memory/weak_ptr.h" |
#include "base/template_util.h" |
@@ -593,8 +594,8 @@ IgnoreResult(const Callback<T>& data) { |
BASE_EXPORT void DoNothing(); |
template<typename T> |
-void DeletePointer(T* obj) { |
- delete obj; |
+void DeletePointer(scoped_ptr<T> obj) { |
+ // No need to do anything, scoped_ptr<> will do it for us. |
} |
} // namespace base |