From df4544e949194f80c3a647d16443a6ae7ac05a4b Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 18 May 2012 21:41:24 +0000 Subject: [PATCH] Linux: Fix compile error due to gdk_pixbuf_unref deprecation (issue #593). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@634 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- cef1/libcef/web_drag_source_gtk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cef1/libcef/web_drag_source_gtk.cc b/cef1/libcef/web_drag_source_gtk.cc index 9dd4caabc..aa2fc334a 100644 --- a/cef1/libcef/web_drag_source_gtk.cc +++ b/cef1/libcef/web_drag_source_gtk.cc @@ -98,7 +98,7 @@ void WebDragSource::StartDragging(const WebDropData& drop_data, const SkBitmap& bitmap = image.getSkBitmap(); GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(&bitmap); gtk_drag_set_icon_pixbuf(context, pixbuf, image_offset.x, image_offset.y); - gdk_pixbuf_unref(pixbuf); + g_object_unref(pixbuf); } else { gtk_drag_set_icon_default(context); }