From 673846eb30d851db0a48b663f8a17c2d521c427e Mon Sep 17 00:00:00 2001 From: "brettw@google.com" Date: Mon, 15 Sep 2008 20:47:53 +0000 Subject: Fix a leak in the unit tests. Review URL: http://codereview.chromium.org/3067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2237 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/navigation_controller_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser') diff --git a/chrome/browser/navigation_controller_unittest.cc b/chrome/browser/navigation_controller_unittest.cc index 5f9d85e..731958d 100644 --- a/chrome/browser/navigation_controller_unittest.cc +++ b/chrome/browser/navigation_controller_unittest.cc @@ -1225,8 +1225,8 @@ TEST_F(NavigationControllerTest, RestoreNavigate) { std::vector navigations; navigations.push_back(TabNavigation(0, url, L"Title", "state", PageTransition::LINK)); - NavigationController* controller = - new NavigationController(profile, navigations, 0, NULL); + scoped_ptr controller( + new NavigationController(profile, navigations, 0, NULL)); controller->GoToIndex(0); // We should now have one entry, and it should be "pending". -- cgit v1.1