summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ash/root_window_controller.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 284c39e..6d5fb62 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -179,7 +179,9 @@ class EmptyWindowDelegate : public aura::WindowDelegate {
float device_scale_factor) OVERRIDE {
}
virtual void OnWindowDestroying() OVERRIDE {}
- virtual void OnWindowDestroyed() OVERRIDE {}
+ virtual void OnWindowDestroyed() OVERRIDE {
+ delete this;
+ }
virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE {
}
virtual bool HasHitTestMask() const OVERRIDE {