fix: destroy GetSize callback at last (#23930)

This commit is contained in:
Cheng Zhao 2020-06-04 03:04:30 +09:00 committed by GitHub
parent ac81a39e09
commit 2fadb73032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -203,10 +203,10 @@ class JSChunkedDataPipeGetter : public gin::Wrappable<JSChunkedDataPipeGetter>,
} }
void Finished() { void Finished() {
size_callback_.Reset();
body_func_.Reset(); body_func_.Reset();
receiver_.reset();
data_producer_.reset(); data_producer_.reset();
receiver_.reset();
size_callback_.Reset();
} }
GetSizeCallback size_callback_; GetSizeCallback size_callback_;