Skip to content

Commit

Permalink
Fix potential dangling PendingRequest::request_ (see #3239)
Browse files Browse the repository at this point in the history
  • Loading branch information
magreenblatt committed Jun 4, 2024
1 parent e4bb51f commit 47798d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,11 @@ class InterceptedRequestHandlerWrapper : public InterceptedRequestHandler {
void Run(InterceptedRequestHandlerWrapper* self) {
self->OnBeforeRequest(id_, request_, request_was_redirected_,
std::move(callback_), std::move(cancel_callback_));
request_ = nullptr;
}

const int32_t id_;
const raw_ptr<network::ResourceRequest> request_;
raw_ptr<network::ResourceRequest> request_;
const bool request_was_redirected_;
OnBeforeRequestResultCallback callback_;
CancelRequestCallback cancel_callback_;
Expand Down

0 comments on commit 47798d3

Please sign in to comment.