summaryrefslogtreecommitdiffstats
path: root/chrome/browser/navigation_controller.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-21 19:59:44 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-21 19:59:44 +0000
commitc099387baacdb619447e88ea92aacd9753d78341 (patch)
tree3a137e1d1ef798af8fa7a82edc323628c02f0faf /chrome/browser/navigation_controller.cc
parent54f0a3085bd788bf1dd3ec717e17d2385d5da7dc (diff)
downloadchromium_src-c099387baacdb619447e88ea92aacd9753d78341.zip
chromium_src-c099387baacdb619447e88ea92aacd9753d78341.tar.gz
chromium_src-c099387baacdb619447e88ea92aacd9753d78341.tar.bz2
Fix leak on shutdown in the navigation controller. The pending entry was not
getting deleted. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1173 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/navigation_controller.cc')
-rw-r--r--chrome/browser/navigation_controller.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/navigation_controller.cc b/chrome/browser/navigation_controller.cc
index 1b86157..e35ee59 100644
--- a/chrome/browser/navigation_controller.cc
+++ b/chrome/browser/navigation_controller.cc
@@ -191,6 +191,8 @@ NavigationController::~NavigationController() {
DCHECK(tab_contents_map_.empty());
DCHECK(tab_contents_collector_map_.empty());
+ DiscardPendingEntryInternal();
+
profile_->UnregisterNavigationController(this);
NotificationService::current()->Notify(NOTIFY_TAB_CLOSED,
Source<NavigationController>(this),