background: Remove the system noise content when not in use

https://bugzilla.gnome.org/show_bug.cgi?id=719803
This commit is contained in:
Jasper St. Pierre 2013-12-03 17:05:06 -05:00
parent eb1c85f3f5
commit 7f3aadc157

View File

@ -634,7 +634,13 @@ const SystemBackground = new Lang.Class({
this.emit('loaded'); this.emit('loaded');
}) })
}); });
}
this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
},
_onDestroy: function() {
this._cache.removeImageContent(this.actor.content);
},
}); });
Signals.addSignalMethods(SystemBackground.prototype); Signals.addSignalMethods(SystemBackground.prototype);