diff --git a/js/ui/background.js b/js/ui/background.js index 3730beb3a..021269989 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -659,7 +659,10 @@ const SystemBackground = new Lang.Class({ }, _onDestroy: function() { - this._cache.removeImageContent(this.actor.content); + let content = this.actor.content; + + if (content) + this._cache.removeImageContent(content); }, }); Signals.addSignalMethods(SystemBackground.prototype);