Commit 76e68448 authored by groby@chromium.org's avatar groby@chromium.org

Silence a (spurious) use after free message

BUG=none
TEST=AsyncHostResolver.*


Review URL: http://codereview.chromium.org/8918029

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114186 0039d316-1c4b-4281-b951-d872f2087c98
parent eb7a9081
...@@ -397,8 +397,8 @@ void AsyncHostResolver::OnDnsRequestComplete( ...@@ -397,8 +397,8 @@ void AsyncHostResolver::OnDnsRequestComplete(
requestlist_map_.erase(rit); requestlist_map_.erase(rit);
// Cleanup |dns_req| and start a new one if there are pending requests. // Cleanup |dns_req| and start a new one if there are pending requests.
delete dns_req;
dns_requests_.remove(dns_req); dns_requests_.remove(dns_req);
delete dns_req;
ProcessPending(); ProcessPending();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment