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

Unified Diff: net/http/http_cache_lookup_manager.cc

Issue 2519473002: Fixes the cache lock issue. (Closed)
Patch Set: Initial patch Created 4 years 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
Index: net/http/http_cache_lookup_manager.cc
diff --git a/net/http/http_cache_lookup_manager.cc b/net/http/http_cache_lookup_manager.cc
index 04cd5ec56f3a92259e52ee7fab77df443fad099f..4ade68cdaa02730c8edb53f7fe77dcf6ee054ee7 100644
--- a/net/http/http_cache_lookup_manager.cc
+++ b/net/http/http_cache_lookup_manager.cc
@@ -14,7 +14,9 @@ HttpCacheLookupManager::LookupTransaction::LookupTransaction(
request_(new HttpRequestInfo()),
transaction_(nullptr) {}
-HttpCacheLookupManager::LookupTransaction::~LookupTransaction() {}
+HttpCacheLookupManager::LookupTransaction::~LookupTransaction() {
+ transaction_->Orphan(std::move(transaction_));
+}
int HttpCacheLookupManager::LookupTransaction::StartLookup(
HttpCache* cache,

Powered by Google App Engine
This is Rietveld 408576698