From cc311dc8e68698a25c05d6020a13a8af44e14799 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 6 Nov 2017 20:35:13 +0100 Subject: [PATCH] compositor: Keep reference to the screen on the MetaBackground This is not a leak per se, but it seems too easy to make valgrind SIGSEGV due to MetaBackground disconnecting signals from an already destroyed MetaScreen when trying to SIGTERM gnome-shell. Keeping a reference fixes this. https://bugzilla.gnome.org/show_bug.cgi?id=789984 --- src/compositor/meta-background.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor/meta-background.c b/src/compositor/meta-background.c index 00d18f1fd..61dd12095 100644 --- a/src/compositor/meta-background.c +++ b/src/compositor/meta-background.c @@ -163,7 +163,7 @@ set_screen (MetaBackground *self, self); } - priv->screen = screen; + g_set_object (&priv->screen, screen); if (priv->screen != NULL) {