mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: destroy GetSize callback at last (#23954)
Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
This commit is contained in:
@@ -203,10 +203,10 @@ class JSChunkedDataPipeGetter : public gin::Wrappable<JSChunkedDataPipeGetter>,
|
||||
}
|
||||
|
||||
void Finished() {
|
||||
size_callback_.Reset();
|
||||
body_func_.Reset();
|
||||
receiver_.reset();
|
||||
data_producer_.reset();
|
||||
receiver_.reset();
|
||||
size_callback_.Reset();
|
||||
}
|
||||
|
||||
GetSizeCallback size_callback_;
|
||||
|
||||
Reference in New Issue
Block a user