screenShield: Ensure we destroy background container widgets

We may accidentally leak a widget when monitors change while
locked otherwise. This is especially bad because we put a
box-shadow on this widget.

https://bugzilla.gnome.org/show_bug.cgi?id=697300
This commit is contained in:
Jasper St. Pierre 2013-04-04 16:59:39 -04:00
parent 14189e6827
commit 1ee88a2878

View File

@ -562,6 +562,7 @@ const ScreenShield = new Lang.Class({
this._bgManagers[i].destroy();
this._bgManagers = [];
this._backgroundGroup.destroy_all_children();
for (let i = 0; i < Main.layoutManager.monitors.length; i++)
this._createBackground(i);