mirror of
https://github.com/elementary/gala.git
synced 2024-08-16 18:40:27 +03:00
Prevent double BackgroundManager destroy (#562)
This commit is contained in:
parent
087abfc51b
commit
6df680d933
@ -42,9 +42,11 @@ namespace Gala
|
||||
background_source = BackgroundCache.get_default ().get_background_source (screen, BACKGROUND_SCHEMA);
|
||||
|
||||
background_actor = create_background_actor ();
|
||||
|
||||
destroy.connect (on_destroy);
|
||||
}
|
||||
|
||||
public override void destroy ()
|
||||
void on_destroy ()
|
||||
{
|
||||
BackgroundCache.get_default ().release_background_source (BACKGROUND_SCHEMA);
|
||||
background_source = null;
|
||||
@ -58,8 +60,6 @@ namespace Gala
|
||||
background_actor.destroy ();
|
||||
background_actor = null;
|
||||
}
|
||||
|
||||
base.destroy ();
|
||||
}
|
||||
|
||||
void swap_background_actor ()
|
||||
|
Loading…
Reference in New Issue
Block a user