diff options
Diffstat (limited to 'ui/views/controls/prefix_selector_unittest.cc')
-rw-r--r-- | ui/views/controls/prefix_selector_unittest.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/views/controls/prefix_selector_unittest.cc b/ui/views/controls/prefix_selector_unittest.cc index fe7614b..fe2651c 100644 --- a/ui/views/controls/prefix_selector_unittest.cc +++ b/ui/views/controls/prefix_selector_unittest.cc @@ -46,6 +46,11 @@ class PrefixSelectorTest : public ViewsTestBase { PrefixSelectorTest() { selector_.reset(new PrefixSelector(&delegate_)); } + ~PrefixSelectorTest() override { + // Explicitly release |selector_| here which can happen before releasing + // |delegate_|. + selector_.reset(); + } protected: scoped_ptr<PrefixSelector> selector_; |