Commit 2728be6e authored by jhawkins@chromium.org's avatar jhawkins@chromium.org

Valgrind: Fix a leak.

BUG=none
TEST=none
R=groby
TBR=aa

Review URL: https://chromiumcodereview.appspot.com/10413039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138156 0039d316-1c4b-4281-b951-d872f2087c98
parent 6842087a
......@@ -105,6 +105,14 @@ class WebAuthFlowTest : public ChromeRenderViewHostTestHarness {
ChromeRenderViewHostTestHarness::SetUp();
}
virtual void TearDown() {
// |flow_| must be reset before ChromeRenderViewHostTestHarness::TearDown(),
// because |flow_| deletes the WebContents it owns via
// MessageLoop::DeleteSoon().
flow_.reset();
ChromeRenderViewHostTestHarness::TearDown();
}
void CreateAuthFlow(const std::string& extension_id, const GURL& url) {
flow_.reset(new MockWebAuthFlow(&delegate_, profile(), extension_id, url));
}
......
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