forked from AuroraMiddleware/gtk
Don't leak a pixbuf reference in dnd
https://bugzilla.gnome.org/show_bug.cgi?id=775316
This commit is contained in:
parent
316b24e0a0
commit
0037d4d257
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user