summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 02:31:58 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 02:31:58 +0000
commit576d7890bed1717e3b7f05d9527e7a7659c7e000 (patch)
tree6d0d4f2677f4fcb1371a93376089ada71dfec280 /views
parentd73545f4f8b2a7c6673da4b58591db5be775a4bd (diff)
downloadchromium_src-576d7890bed1717e3b7f05d9527e7a7659c7e000.zip
chromium_src-576d7890bed1717e3b7f05d9527e7a7659c7e000.tar.gz
chromium_src-576d7890bed1717e3b7f05d9527e7a7659c7e000.tar.bz2
Linux: Fix some GdkPixbuf leaks.
Also expand some documentation for functions that returned a GdkPixbuf about who owns the reference BUG=38895 TEST=manual test that nothing is broken, will watch bot for leak results Review URL: http://codereview.chromium.org/1075014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42302 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/controls/menu/native_menu_gtk.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/views/controls/menu/native_menu_gtk.cc b/views/controls/menu/native_menu_gtk.cc
index 395e9a5..f551ed6 100644
--- a/views/controls/menu/native_menu_gtk.cc
+++ b/views/controls/menu/native_menu_gtk.cc
@@ -224,6 +224,7 @@ GtkWidget* NativeMenuGtk::AddMenuItemAt(int index,
GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(&icon);
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menu_item),
gtk_image_new_from_pixbuf(pixbuf));
+ g_object_unref(pixbuf);
} else {
menu_item = gtk_menu_item_new_with_mnemonic(label.c_str());
}