Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: mojo/services/network/url_loader_impl.cc

Issue 1236333003: Fix double delete in url_loader_impl.cc (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/url_loader_impl.cc
diff --git a/mojo/services/network/url_loader_impl.cc b/mojo/services/network/url_loader_impl.cc
index bda30e538a48dde2d16795dd5bd4c0bd82488d46..955a49c2e958484272fd7896de24912b26b723d1 100644
--- a/mojo/services/network/url_loader_impl.cc
+++ b/mojo/services/network/url_loader_impl.cc
@@ -268,7 +268,7 @@ URLLoaderImpl::URLLoaderImpl(NetworkContext* context,
current_fetcher_id_(0),
binding_(this, request.Pass()) {
for (auto& interceptor : interceptors_) {
- interceptor.set_connection_error_handler([this]() { OnConnectionError(); });
+ interceptor.set_connection_error_handler([this]() { delete this; });
}
interceptor_index_ = interceptors_.size() - 1;
binding_.set_connection_error_handler([this]() { OnConnectionError(); });
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698