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

Unified Diff: chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc

Issue 1234223005: Initial gtk3 support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Silence gtk memory leak Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc ('k') | chrome/browser/ui/libgtk2ui/print_dialog_gtk2.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc
diff --git a/chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc b/chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc
index cf6a3a4283a3d8ae760829f4257da1106ab646e2..e45996895a964295717706a92c62233c5bca8376 100644
--- a/chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc
+++ b/chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc
@@ -19,11 +19,8 @@ void OwnedWidgetGtk::Own(GtkWidget* widget) {
return;
DCHECK(!widget_);
- // We want to make sure that Own() was called properly, right after the
- // widget was created. There should be a floating reference.
- DCHECK(g_object_is_floating(widget));
- // Sink the floating reference, we should now own this reference.
+ // Keep a reference
g_object_ref_sink(widget);
widget_ = widget;
}
« no previous file with comments | « chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc ('k') | chrome/browser/ui/libgtk2ui/print_dialog_gtk2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698