Chromium Code Reviews| Index: services/ui/demo/mus_demo.cc |
| diff --git a/services/ui/demo/mus_demo.cc b/services/ui/demo/mus_demo.cc |
| index 7afba5693af4cae100e7e13c0f09af916494b989..81fd477527a878d18c22b737d5fb4bc440a2e110 100644 |
| --- a/services/ui/demo/mus_demo.cc |
| +++ b/services/ui/demo/mus_demo.cc |
| @@ -24,6 +24,8 @@ MusDemo::MusDemo() {} |
| MusDemo::~MusDemo() { |
| display::Screen::SetScreenInstance(nullptr); |
| + window_tree_data_list_.clear(); |
| + window_tree_client_.reset(); |
|
fwang
2017/03/20 11:45:39
Maybe add a comment that the destruction order is
kylechar
2017/03/20 13:27:42
Yes, please add a comment explaining the order.
msisov
2017/03/20 14:04:01
Done.
|
| } |
| void MusDemo::AddPrimaryDisplay(const display::Display& display) { |