summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/task_manager_mac.mm
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-03 13:47:57 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-03 13:47:57 +0000
commitdbbd87f9021ef7b6c69ec6e7bd179be7ed358e0e (patch)
tree41f8ec73394c7eadb3535c3c549c4a34882cdc6c /chrome/browser/cocoa/task_manager_mac.mm
parentca491de5572a789a43e952ef265f4f945ee6207b (diff)
downloadchromium_src-dbbd87f9021ef7b6c69ec6e7bd179be7ed358e0e.zip
chromium_src-dbbd87f9021ef7b6c69ec6e7bd179be7ed358e0e.tar.gz
chromium_src-dbbd87f9021ef7b6c69ec6e7bd179be7ed358e0e.tar.bz2
Prevent a crash in TaskManagerWindowController by nil-ing the dataSource and delegate in dealloc.
BUG=61669 TEST=none Review URL: http://codereview.chromium.org/4234005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/task_manager_mac.mm')
-rw-r--r--chrome/browser/cocoa/task_manager_mac.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/task_manager_mac.mm b/chrome/browser/cocoa/task_manager_mac.mm
index b4cee66..65241d2 100644
--- a/chrome/browser/cocoa/task_manager_mac.mm
+++ b/chrome/browser/cocoa/task_manager_mac.mm
@@ -195,6 +195,12 @@ class SortHelper {
[tableView_ sizeToFit];
}
+- (void)dealloc {
+ [tableView_ setDelegate:nil];
+ [tableView_ setDataSource:nil];
+ [super dealloc];
+}
+
// Adds a column which has the given string id as title. |isVisible| specifies
// if the column is initially visible.
- (NSTableColumn*)addColumnWithId:(int)columnId visible:(BOOL)isVisible {