mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
1196b7bde4
commit
c2fad2dc7c
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user