summaryrefslogtreecommitdiffstats
path: root/chrome/views/tabbed_pane.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/tabbed_pane.cc')
-rw-r--r--chrome/views/tabbed_pane.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/views/tabbed_pane.cc b/chrome/views/tabbed_pane.cc
index bab0d72..9fe72a7 100644
--- a/chrome/views/tabbed_pane.cc
+++ b/chrome/views/tabbed_pane.cc
@@ -120,9 +120,10 @@ View* TabbedPane::RemoveTabAtIndex(int index) {
ResizeContents(tab_control_);
std::vector<View*>::iterator iter = tab_views_.begin() + index;
+ View* removed_tab = *iter;
tab_views_.erase(iter);
- return *iter;
+ return removed_tab;
}
void TabbedPane::SelectTabAt(int index) {