summaryrefslogtreecommitdiffstats
path: root/views/controls/native_control.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/native_control.cc')
-rw-r--r--views/controls/native_control.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/controls/native_control.cc b/views/controls/native_control.cc
index b23d150..700da66 100644
--- a/views/controls/native_control.cc
+++ b/views/controls/native_control.cc
@@ -287,6 +287,8 @@ HWND NativeControl::GetNativeControlHWND() {
}
void NativeControl::NativeControlDestroyed() {
+ if (hwnd_view_)
+ hwnd_view_->Detach();
container_ = NULL;
}