Skip to content

Commit

Permalink
fix: memory leak in net.request (#25382)
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Sep 10, 2020
1 parent 7de2539 commit 75f193a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shell/browser/api/electron_api_url_loader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ void SimpleURLLoaderWrapper::OnRetry(base::OnceClosure start_retry) {}
void SimpleURLLoaderWrapper::OnResponseStarted(
const GURL& final_url,
const network::mojom::URLResponseHead& response_head) {
v8::HandleScope scope(isolate());
gin::Dictionary dict = gin::Dictionary::CreateEmpty(isolate());
dict.Set("statusCode", response_head.headers->response_code());
dict.Set("statusMessage", response_head.headers->GetStatusText());
Expand Down

0 comments on commit 75f193a

Please sign in to comment.