selection: Fix task leak in error case of source_read_cb
Fixes the last part of https://gitlab.gnome.org/GNOME/mutter/issues/1006 https://gitlab.gnome.org/GNOME/mutter/merge_requests/1001
This commit is contained in:
parent
b41094ef5f
commit
e7928ce6ee
@ -270,6 +270,7 @@ source_read_cb (MetaSelectionSource *source,
|
||||
if (!stream)
|
||||
{
|
||||
g_task_return_error (task, error);
|
||||
g_object_unref (task);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user