mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix crash if a pending request is continued after deletion (see issue #2622).
This is a speculative fix for a crash where the pending ResourceRequest appears to be invalid after the request is continued from SetInitialized.
This commit is contained in:
@@ -875,6 +875,9 @@ void InterceptedRequest::ContinueToResponseStarted(int error_code) {
|
||||
}
|
||||
|
||||
void InterceptedRequest::OnDestroy() {
|
||||
// We don't want any callbacks after this point.
|
||||
weak_factory_.InvalidateWeakPtrs();
|
||||
|
||||
factory_->request_handler_->OnRequestComplete(id_, request_, status_);
|
||||
|
||||
// Destroys |this|.
|
||||
|
Reference in New Issue
Block a user