summaryrefslogtreecommitdiffstats
path: root/ui/views
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 21:40:32 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 21:40:32 +0000
commite6d8c48547737520c381b13ec9acad705995b9fd (patch)
tree1a613edfa01844b677178059377e6dc4d8d98d51 /ui/views
parentc7783a35b697d8f5c0e4b34ecbadf923627bb3ed (diff)
downloadchromium_src-e6d8c48547737520c381b13ec9acad705995b9fd.zip
chromium_src-e6d8c48547737520c381b13ec9acad705995b9fd.tar.gz
chromium_src-e6d8c48547737520c381b13ec9acad705995b9fd.tar.bz2
Fix crash when closing treeview example.
BUG=115845 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/9481029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views')
-rw-r--r--ui/views/examples/tree_view_example.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/views/examples/tree_view_example.cc b/ui/views/examples/tree_view_example.cc
index 20688d2..cd98d07 100644
--- a/ui/views/examples/tree_view_example.cc
+++ b/ui/views/examples/tree_view_example.cc
@@ -20,6 +20,9 @@ TreeViewExample::TreeViewExample()
}
TreeViewExample::~TreeViewExample() {
+ // Delete the view before the model.
+ delete tree_view_;
+ tree_view_ = NULL;
}
void TreeViewExample::CreateExampleView(View* container) {