[mutter] compositor: Keep reference to the screen on the MetaBackground
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] compositor: Keep reference to the screen on the MetaBackground
- Date: Tue, 7 Nov 2017 10:13:20 +0000 (UTC)
commit c2fad2dc7ce67bec246c636caefeb9e0e57fa7ec
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Nov 6 20:35:13 2017 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/compositor/meta-background.c b/src/compositor/meta-background.c
index 00d18f1..61dd120 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]