| Index: content/child/resource_dispatcher.cc
|
| diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
|
| index 456695cfbe9c43866a7b691b72bb5b436fc0c20a..ad80be7630978d52523d1cca9f2aee341d9e8d8b 100644
|
| --- a/content/child/resource_dispatcher.cc
|
| +++ b/content/child/resource_dispatcher.cc
|
| @@ -588,8 +588,10 @@ void ResourceDispatcher::CancelPendingRequest(int request_id) {
|
| return;
|
| }
|
|
|
| - // |request_id| will be removed from |pending_requests_| when
|
| - // OnRequestComplete returns with ERR_ABORTED.
|
| + PendingRequestInfo& request_info = it->second;
|
| + ReleaseResourcesInMessageQueue(&request_info.deferred_message_queue);
|
| + pending_requests_.erase(it);
|
| +
|
| message_sender()->Send(new ResourceHostMsg_CancelRequest(request_id));
|
| }
|
|
|
|
|