From 7f3aadc1573589bd169e25a61987d94eb27e4129 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 3 Dec 2013 17:05:06 -0500 Subject: [PATCH] background: Remove the system noise content when not in use https://bugzilla.gnome.org/show_bug.cgi?id=719803 --- js/ui/background.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/ui/background.js b/js/ui/background.js index 5f11e5777..af69f9dcd 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -634,7 +634,13 @@ const SystemBackground = new Lang.Class({ this.emit('loaded'); }) }); - } + + this.actor.connect('destroy', Lang.bind(this, this._onDestroy)); + }, + + _onDestroy: function() { + this._cache.removeImageContent(this.actor.content); + }, }); Signals.addSignalMethods(SystemBackground.prototype);