diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/native/native_view_host.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/controls/native/native_view_host.cc b/views/controls/native/native_view_host.cc index 9cbeaf7..5f22a00 100644 --- a/views/controls/native/native_view_host.cc +++ b/views/controls/native/native_view_host.cc @@ -52,9 +52,9 @@ void NativeViewHost::SetPreferredSize(const gfx::Size& size) { } void NativeViewHost::NativeViewDestroyed() { - // TODO(beng): figure out if this should/could call Detach instead since as it - // stands right now this object is left in an inconsistent state. - native_view_ = NULL; + // Detach so we can clear our state and notify the native_wrapper_ to release + // ref on the native view. + Detach(); } //////////////////////////////////////////////////////////////////////////////// |