summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Keller <skeller@src.gnome.org>2020-01-11 03:57:04 +0100
committerRobert Mader <robert.mader@posteo.de>2020-02-01 14:02:19 +0000
commit861e5caf8cc80e19f7aef5560265861d41fa10b5 (patch)
tree3530ab64d1a2a671c62c28dfef6a00be5c03427e
parent8e6821bc6586c9bd8c917cc37c40686c28ca95ad (diff)
downloadmutter-861e5caf8cc80e19f7aef5560265861d41fa10b5.tar.gz
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
-rw-r--r--src/x11/meta-selection-source-x11.c1
1 files changed, 1 insertions, 0 deletions
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;
}