Index: net/url_request/url_request_job.cc |
diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc |
index e4665696bdacb4ae5a6d545a5419987eee2836a5..e7421f79b336ce74d6a6ae946879417775b63034 100644 |
--- a/net/url_request/url_request_job.cc |
+++ b/net/url_request/url_request_job.cc |
@@ -28,9 +28,9 @@ namespace { |
// Callback for TYPE_URL_REQUEST_FILTERS_SET net-internals event. |
base::Value* FiltersSetCallback(Filter* filter, |
NetLogCaptureMode /* capture_mode */) { |
- base::DictionaryValue* event_params = new base::DictionaryValue(); |
+ scoped_ptr<base::DictionaryValue> event_params(new base::DictionaryValue()); |
event_params->SetString("filters", filter->OrderedFilterList()); |
- return event_params; |
+ return event_params.release(); |
} |
std::string ComputeMethodForRedirect(const std::string& method, |