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:
Sebastian Keller 2020-01-30 10:35:01 +01:00 committed by Robert Mader
parent b41094ef5f
commit e7928ce6ee

View File

@ -270,6 +270,7 @@ source_read_cb (MetaSelectionSource *source,
if (!stream)
{
g_task_return_error (task, error);
g_object_unref (task);
return;
}