diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-21 00:51:59 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-21 00:51:59 +0000 |
commit | bbe1871538d5e32787284ac99be10ef871654b0e (patch) | |
tree | 8b8e00f4fdbab3b8a956b31826e2049f5d6257fc /webkit/tools/test_shell/test_navigation_controller.h | |
parent | 765b3550e2164b7ccc5360b360ba940639be71c1 (diff) | |
download | chromium_src-bbe1871538d5e32787284ac99be10ef871654b0e.zip chromium_src-bbe1871538d5e32787284ac99be10ef871654b0e.tar.gz chromium_src-bbe1871538d5e32787284ac99be10ef871654b0e.tar.bz2 |
Hopefully fix leaks of TestNavigationEntries. They aren't be deleted in the destructor. Hopefully the fancy new linked_ptr will fix the problem.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1138 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_navigation_controller.h')
-rw-r--r-- | webkit/tools/test_shell/test_navigation_controller.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/test_navigation_controller.h b/webkit/tools/test_shell/test_navigation_controller.h index c99a238..da78bac 100644 --- a/webkit/tools/test_shell/test_navigation_controller.h +++ b/webkit/tools/test_shell/test_navigation_controller.h @@ -34,6 +34,7 @@ #include <vector> #include "base/basictypes.h" +#include "base/linked_ptr.h" #include "base/ref_counted.h" #include "googleurl/src/gurl.h" #include "webkit/glue/weburlrequest.h" @@ -193,7 +194,7 @@ class TestNavigationController { void UpdateMaxPageID(); // List of NavigationEntry for this tab - typedef std::vector<TestNavigationEntry*> NavigationEntryList; + typedef std::vector< linked_ptr<TestNavigationEntry> > NavigationEntryList; typedef NavigationEntryList::iterator NavigationEntryListIterator; NavigationEntryList entries_; |