mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
wayland/data-device: Don't create and leak unused memory on dnd
"offer" is overwritten with the result of meta_wayland_data_offer_new a
few lines later.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1293
(cherry picked from commit 99c9f4c1fa
)
This commit is contained in:
parent
70072c39dd
commit
b8bd39793a
@ -94,7 +94,7 @@ static struct wl_resource *
|
|||||||
create_and_send_dnd_offer (MetaWaylandDataSource *source,
|
create_and_send_dnd_offer (MetaWaylandDataSource *source,
|
||||||
struct wl_resource *target)
|
struct wl_resource *target)
|
||||||
{
|
{
|
||||||
MetaWaylandDataOffer *offer = g_slice_new0 (MetaWaylandDataOffer);
|
MetaWaylandDataOffer *offer;
|
||||||
struct wl_array *mime_types;
|
struct wl_array *mime_types;
|
||||||
struct wl_resource *resource;
|
struct wl_resource *resource;
|
||||||
char **p;
|
char **p;
|
||||||
|
Loading…
Reference in New Issue
Block a user