mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
wayland: Plug MetaSelectionSourceWayland leaks
There was a dangling ref left on all of them, oops. https://gitlab.gnome.org/GNOME/mutter/merge_requests/848
This commit is contained in:
parent
943b069996
commit
dfd44ff971
@ -1309,6 +1309,7 @@ data_device_start_drag (struct wl_client *client,
|
|||||||
g_list_free_full (mimetypes, g_free);
|
g_list_free_full (mimetypes, g_free);
|
||||||
set_selection_source (data_device, META_SELECTION_DND,
|
set_selection_source (data_device, META_SELECTION_DND,
|
||||||
selection_source);
|
selection_source);
|
||||||
|
g_object_unref (selection_source);
|
||||||
|
|
||||||
meta_wayland_pointer_set_focus (seat->pointer, NULL);
|
meta_wayland_pointer_set_focus (seat->pointer, NULL);
|
||||||
meta_wayland_data_device_start_drag (data_device, client,
|
meta_wayland_data_device_start_drag (data_device, client,
|
||||||
@ -1694,6 +1695,7 @@ meta_wayland_data_device_set_selection (MetaWaylandDataDevice *data_device,
|
|||||||
|
|
||||||
set_selection_source (data_device, META_SELECTION_CLIPBOARD,
|
set_selection_source (data_device, META_SELECTION_CLIPBOARD,
|
||||||
selection_source);
|
selection_source);
|
||||||
|
g_object_unref (selection_source);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1831,6 +1833,7 @@ meta_wayland_data_device_set_primary (MetaWaylandDataDevice *data_device,
|
|||||||
|
|
||||||
set_selection_source (data_device, META_SELECTION_PRIMARY,
|
set_selection_source (data_device, META_SELECTION_PRIMARY,
|
||||||
selection_source);
|
selection_source);
|
||||||
|
g_object_unref (selection_source);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user