From 2fadb730320b6d357916f7236c0afd1b506010cb Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 4 Jun 2020 03:04:30 +0900 Subject: [PATCH] fix: destroy GetSize callback at last (#23930) --- shell/browser/api/electron_api_url_loader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/browser/api/electron_api_url_loader.cc b/shell/browser/api/electron_api_url_loader.cc index 4b0dabf75798..ac5a6cea1d40 100644 --- a/shell/browser/api/electron_api_url_loader.cc +++ b/shell/browser/api/electron_api_url_loader.cc @@ -203,10 +203,10 @@ class JSChunkedDataPipeGetter : public gin::Wrappable, } void Finished() { - size_callback_.Reset(); body_func_.Reset(); - receiver_.reset(); data_producer_.reset(); + receiver_.reset(); + size_callback_.Reset(); } GetSizeCallback size_callback_;