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

Issue 159751: Fix leak of GtkWidgets in NativeViewHost, and in doing so fix a crash on shut... (Closed)

Created:
11 years, 4 months ago by Ben Goodger (Google)
Modified:
9 years, 6 months ago
Reviewers:
jcampan
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Fix leak of GtkWidgets in NativeViewHost, and in doing so fix a crash on shutdown due to a check in OwnedWidgetGtk for unbalanced refcnt. The NativeViewHostGtk now owns the GtkWidget attached to it for the lifetime of its attachment. This removes my crazy ownership games from before and makes it a lot simpler. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22230

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -16 lines) Patch
M chrome/browser/views/location_bar_view.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M views/controls/native/native_view_host_gtk.h View 1 2 chunks +6 lines, -4 lines 1 comment Download
M views/controls/native/native_view_host_gtk.cc View 1 5 chunks +12 lines, -12 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Ben Goodger (Google)
11 years, 4 months ago (2009-07-31 23:44:21 UTC) #1
jcampan
11 years, 4 months ago (2009-07-31 23:51:56 UTC) #2
LGTM

http://codereview.chromium.org/159751/diff/1002/11
File views/controls/native/native_view_host_gtk.h (right):

http://codereview.chromium.org/159751/diff/1002/11#newcode49
Line 49: // DestroyFixed returns true if an associated GtkWidget was addref'ed.
It does not return anything anymore, fix comment.

Powered by Google App Engine
This is Rietveld 408576698