Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Issue 202035: Fix accel leak in task manager and bookmark manager by using (Closed)

Created:
11 years, 3 months ago by tony
Modified:
9 years, 7 months ago
Reviewers:
James Hawkins, mattm
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

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.

Patch Set 1 #

Total comments: 1

Patch Set 2 : null #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -13 lines) Patch
M chrome/browser/gtk/bookmark_manager_gtk.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/gtk/bookmark_manager_gtk.cc View 1 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/gtk/task_manager_gtk.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/gtk/task_manager_gtk.cc View 3 chunks +10 lines, -7 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
tony
11 years, 3 months ago (2009-09-10 00:42:53 UTC) #1
mattm
11 years, 3 months ago (2009-09-10 01:13:21 UTC) #2
lgtm

Ar, weird gtk refcounting stuff strikes again.

http://codereview.chromium.org/202035/diff/1/2
File chrome/browser/gtk/bookmark_manager_gtk.cc (right):

http://codereview.chromium.org/202035/diff/1/2#newcode329
Line 329: accel_group_ = NULL;
setting it to NULL seems unnecessary since this is in the destructor (vs
browser_window_gtk which has it in a close method and uses that as a flag)

Powered by Google App Engine
This is Rietveld 408576698