summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-28 15:40:20 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-28 15:40:20 +0000
commit160ad3d101988b9d842fef8b18cc49c54c9a1de5 (patch)
tree567875d2f363d0b110ad25da9a9aa07cffcaa201 /views
parent341078d4b72bd3de280b960be6cd4ac5e5ab0265 (diff)
downloadchromium_src-160ad3d101988b9d842fef8b18cc49c54c9a1de5.zip
chromium_src-160ad3d101988b9d842fef8b18cc49c54c9a1de5.tar.gz
chromium_src-160ad3d101988b9d842fef8b18cc49c54c9a1de5.tar.bz2
Refactor AppModalDialog to more clearly isolate platform specific UI pieces and eliminate the dependency on individual frontends from cross platform code.
BUG=none TEST=none Review URL: http://codereview.chromium.org/3398015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60785 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/window/window_gtk.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc
index 16444b3d9..785b1bc 100644
--- a/views/window/window_gtk.cc
+++ b/views/window/window_gtk.cc
@@ -491,6 +491,8 @@ void WindowGtk::SizeWindowToDefault(GtkWindow* parent) {
void WindowGtk::OnDestroy(GtkWidget* widget) {
non_client_view_->WindowClosing();
WidgetGtk::OnDestroy(widget);
+ window_delegate_->DeleteDelegate();
+ window_delegate_ = NULL;
}
} // namespace views