From e7928ce6eed69475fdf537d8c8975e21d57757d8 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Thu, 30 Jan 2020 10:35:01 +0100 Subject: [PATCH] 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 --- src/core/meta-selection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/meta-selection.c b/src/core/meta-selection.c index e0ff9f4b1..7e86c5269 100644 --- a/src/core/meta-selection.c +++ b/src/core/meta-selection.c @@ -270,6 +270,7 @@ source_read_cb (MetaSelectionSource *source, if (!stream) { g_task_return_error (task, error); + g_object_unref (task); return; }