[mutter] x11-selection: Plug potential GInputStream leak
- From: Robert Mader <rmader src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] x11-selection: Plug potential GInputStream leak
- Date: Sat, 1 Feb 2020 14:31:53 +0000 (UTC)
commit 861e5caf8cc80e19f7aef5560265861d41fa10b5
Author: Sebastian Keller <skeller src gnome org>
Date: Sat Jan 11 03:57:04 2020 +0100
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]