summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 23:18:35 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 23:18:35 +0000
commit941027d97b5b297ea2ae43592b6f35986040c357 (patch)
tree0b33c2bc353f3fb6be79c15f975c10f81e5ce48c /chrome
parent325be3268fa193b82dbd5011ce6ee6cf3e06b245 (diff)
downloadchromium_src-941027d97b5b297ea2ae43592b6f35986040c357.zip
chromium_src-941027d97b5b297ea2ae43592b6f35986040c357.tar.gz
chromium_src-941027d97b5b297ea2ae43592b6f35986040c357.tar.bz2
Make sure to delete the tab when we remove it from the tab strip. Also removes a call to Layout that should be removed now that we have RemoveTabAnimation.
Review URL: http://codereview.chromium.org/79029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/gtk/tabs/tab_strip_gtk.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.cc b/chrome/browser/gtk/tabs/tab_strip_gtk.cc
index 65d9ea0..8423378 100644
--- a/chrome/browser/gtk/tabs/tab_strip_gtk.cc
+++ b/chrome/browser/gtk/tabs/tab_strip_gtk.cc
@@ -720,8 +720,12 @@ TabGtk* TabStripGtk::GetTabAt(int index) const {
}
void TabStripGtk::RemoveTabAt(int index) {
+ TabGtk* removed = tab_data_.at(index).tab;
+
+ // Remove the Tab from the TabStrip's list.
tab_data_.erase(tab_data_.begin() + index);
- Layout();
+
+ delete removed;
}
void TabStripGtk::GenerateIdealBounds() {