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

Unified Diff: chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc

Issue 10451102: fix a memory leak and add a suppression (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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/gtk/bookmarks/bookmark_tree_model.cc ('k') | chrome/browser/ui/gtk/gtk_theme_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc
diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc b/chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc
index cfa4dadfb6c1c05b51aee215296fecc8699dc006..133ee512388f9a4eb34129c3201fe61e6200faf9 100644
--- a/chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc
+++ b/chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc
@@ -172,11 +172,11 @@ GdkPixbuf* GetPixbufForNode(const BookmarkNode* node, BookmarkModel* model,
if (model->GetFavicon(node).width() != 0) {
pixbuf = gfx::GdkPixbufFromSkBitmap(model->GetFavicon(node));
} else {
- pixbuf = GtkThemeService::GetDefaultFavicon(native)->ToGdkPixbuf();
+ pixbuf = GtkThemeService::GetDefaultFavicon(native).ToGdkPixbuf();
g_object_ref(pixbuf);
}
} else {
- pixbuf = GtkThemeService::GetFolderIcon(native)->ToGdkPixbuf();
+ pixbuf = GtkThemeService::GetFolderIcon(native).ToGdkPixbuf();
g_object_ref(pixbuf);
}
« no previous file with comments | « chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc ('k') | chrome/browser/ui/gtk/gtk_theme_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698