summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/task_manager_win.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/task_manager_win.cc b/chrome/browser/task_manager_win.cc
index 166169d..48b6777 100644
--- a/chrome/browser/task_manager_win.cc
+++ b/chrome/browser/task_manager_win.cc
@@ -266,6 +266,10 @@ TaskManagerViewImpl::TaskManagerViewImpl(TaskManager* task_manager,
TaskManagerViewImpl::~TaskManagerViewImpl() {
// Delete child views now, while our table model still exists.
RemoveAllChildViews(true);
+
+ // Prevent the table from accessing the model as part of its destruction, as
+ // the model might already be destroyed.
+ tab_table_->SetModel(NULL);
}
void TaskManagerViewImpl::Init() {