From 861e5caf8cc80e19f7aef5560265861d41fa10b5 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Sat, 11 Jan 2020 03:57:04 +0100 Subject: [PATCH] x11-selection: Plug potential GInputStream leak The stream was not freed in the error case. I have never observed this one in practice though. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1001 --- src/x11/meta-selection-source-x11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/x11/meta-selection-source-x11.c b/src/x11/meta-selection-source-x11.c index 55e500327..c9fc8fbc6 100644 --- a/src/x11/meta-selection-source-x11.c +++ b/src/x11/meta-selection-source-x11.c @@ -190,6 +190,7 @@ read_mimetypes_cb (GInputStream *stream, { g_task_return_error (task, error); g_object_unref (task); + g_object_unref (stream); return; }