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

Unified Diff: base/gfx/gtk_util.cc

Issue 67179: Have ResourceBundle own GdkPixbufs. (Closed)
Patch Set: null Created 11 years, 8 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
Index: base/gfx/gtk_util.cc
diff --git a/base/gfx/gtk_util.cc b/base/gfx/gtk_util.cc
index 0d2eee0f2edb31f744dbded633608223579c62bd..c307976e40f09e2c97cb4b2bd5e305cc69d1ad3a 100755
--- a/base/gfx/gtk_util.cc
+++ b/base/gfx/gtk_util.cc
@@ -77,8 +77,6 @@ GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap* bitmap) {
8,
width, height, stride, &FreePixels, data);
- // Assume ownership of pixbuf.
- g_object_ref_sink(pixbuf);
bitmap->unlockPixels();
return pixbuf;
}
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc » ('j') | chrome/common/resource_bundle_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698