diff --git a/extensions/xrandr-indicator/extension.js b/extensions/xrandr-indicator/extension.js index e9be23c1..b86c3542 100644 --- a/extensions/xrandr-indicator/extension.js +++ b/extensions/xrandr-indicator/extension.js @@ -64,6 +64,13 @@ const Indicator = new Lang.Class({ this._screen.connect('changed', Lang.bind(this, this._randrEvent)); }, + destroy: function() [ + if (this._screen) + this._screen.run_dispose(); + + this.parent(); + }, + _randrEvent: function() { this.menu.removeAll(); this._createMenu();