[mutter/gnome-3-34] x11-selection: Plug MetaSelectionSourceX11 leak
- From: Robert Mader <rmader src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-34] x11-selection: Plug MetaSelectionSourceX11 leak
- Date: Tue, 21 Apr 2020 23:27:54 +0000 (UTC)
commit 50f383d2e9b32b39633ba044027abe906089ea0c
Author: Sebastian Keller <skeller src gnome org>
Date: Sat Jan 11 03:31:02 2020 +0100
x11-selection: Plug MetaSelectionSourceX11 leak
meta_selection_source_x11_new_finish() transfers the ownership of the
selection source, but source_new_cb() was not freeing it.
Fixes https://gitlab.gnome.org/GNOME/mutter/issues/998
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1001
(cherry picked from commit 8e6821bc6586c9bd8c917cc37c40686c28ca95ad)
src/x11/meta-x11-selection.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/x11/meta-x11-selection.c b/src/x11/meta-x11-selection.c
index 597e2de28..6efffda2c 100644
--- a/src/x11/meta-x11-selection.c
+++ b/src/x11/meta-x11-selection.c
@@ -297,6 +297,7 @@ source_new_cb (GObject *object,
{
meta_selection_set_owner (selection, selection_type, source);
g_set_object (&x11_display->selection.owners[selection_type], source);
+ g_object_unref (source);
}
else if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]