diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-07 16:07:24 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-07 16:07:24 +0000 |
commit | febe1fd66f47f8e37e801ab2f25d1aad722e67b1 (patch) | |
tree | f444a238e26346d2f1d3b70f3d13b4bfbd97f5ad /ash/root_window_controller.cc | |
parent | a21a0231902cb3c659ea5a17ff96aacb0053c1f0 (diff) | |
download | chromium_src-febe1fd66f47f8e37e801ab2f25d1aad722e67b1.zip chromium_src-febe1fd66f47f8e37e801ab2f25d1aad722e67b1.tar.gz chromium_src-febe1fd66f47f8e37e801ab2f25d1aad722e67b1.tar.bz2 |
Delete EmptyWindowDelegate when window is destroyed
This should fix leaks reported on memory bots.
TBR=jyasskin@chromium.org
BUG=none
Review URL: https://codereview.chromium.org/22299006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216200 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/root_window_controller.cc')
-rw-r--r-- | ash/root_window_controller.cc | 4 |
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 { |