From 697b87dd539e18cf21d5e65a7e55919f615e394c Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Thu, 10 Sep 2009 19:22:57 +0000 Subject: Fix accel leak in task manager and bookmark manager by using the same cleanup code as browser_window_gtk. Also fix a leak of the gtk widgets when the accelerator was not used for the task manager. If the user closed by using the window manager destroy, then we never called gtk_widget_destroy on the window and leaked the widgets. Review URL: http://codereview.chromium.org/202035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25897 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/task_manager_gtk.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/browser/gtk/task_manager_gtk.h') diff --git a/chrome/browser/gtk/task_manager_gtk.h b/chrome/browser/gtk/task_manager_gtk.h index ee44ab7e..50f813c 100644 --- a/chrome/browser/gtk/task_manager_gtk.h +++ b/chrome/browser/gtk/task_manager_gtk.h @@ -112,6 +112,8 @@ class TaskManagerGtk : public TaskManagerModelObserver { // The context menu controller. scoped_ptr menu_controller_; + GtkAccelGroup* accel_group_; + // An open task manager window. There can only be one open at a time. This // is reset to NULL when the window is closed. static TaskManagerGtk* instance_; -- cgit v1.1