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
This commit is contained in:
Carlos Garnacho 2017-11-06 20:35:13 +01:00
parent 1196b7bde4
commit c2fad2dc7c

View File

@ -163,7 +163,7 @@ set_screen (MetaBackground *self,
self); self);
} }
priv->screen = screen; g_set_object (&priv->screen, screen);
if (priv->screen != NULL) if (priv->screen != NULL)
{ {