Prevent double BackgroundManager destroy (#562)

This commit is contained in:
Peter Uithoven 2019-07-02 01:33:18 +02:00 committed by Daniel Foré
parent 087abfc51b
commit 6df680d933

View File

@ -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 ()