Fix: Null out this.settings on extension disable

See here for the relevant review:
https://extensions.gnome.org/review/38364
And for the relevant documentation:
https://gjs.guide/extensions/review-guidelines/review-guidelines.html#destroy-all-objects
This commit is contained in:
Julian 2023-01-25 20:40:16 +01:00
parent 93ec247cd3
commit 2ef16f310c
Signed by: julian
GPG Key ID: 094C2AC34192FA11

View File

@ -76,6 +76,8 @@ class Extension {
for (const handlerId of this._settingsHandlerIds) { for (const handlerId of this._settingsHandlerIds) {
this.settings.disconnect(handlerId); this.settings.disconnect(handlerId);
} }
this.settings = null;
} }
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////