Commit 8e6fe834 authored by munjal@chromium.org's avatar munjal@chromium.org

Fix a memory leak in a new test I added.

We need to clean up URLFetcher when we directly test CreateURLFetcher.
Review URL: https://chromiumcodereview.appspot.com/10106009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132549 0039d316-1c4b-4281-b951-d872f2087c98
parent e38052c0
......@@ -277,7 +277,7 @@ TEST_F(OAuth2ApiCallFlowTest, CreateURLFetcher) {
GURL url(CreateApiUrl());
CreateFlow(rt, at, scopes);
TestURLFetcher* url_fetcher = SetupApiCall(true, net::HTTP_OK);
scoped_ptr<TestURLFetcher> url_fetcher(SetupApiCall(true, net::HTTP_OK));
flow_->CreateURLFetcher();
HttpRequestHeaders headers;
url_fetcher->GetExtraRequestHeaders(&headers);
......
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