Don't leak a pixbuf reference in dnd

https://bugzilla.gnome.org/show_bug.cgi?id=775316
This commit is contained in:
Matthias Clasen 2016-11-29 14:42:35 -05:00
parent 316b24e0a0
commit 0037d4d257

View File

@ -371,7 +371,6 @@ gtk_drag_source_set_icon_pixbuf (GtkWidget *widget,
site = g_object_get_data (G_OBJECT (widget), "gtk-site-data");
g_return_if_fail (site != NULL);
g_object_ref (pixbuf);
g_clear_pointer (&site->image_def, gtk_image_definition_unref);
site->image_def = gtk_image_definition_new_pixbuf (pixbuf, 1);