Skip to content

Commit 4afe04a

Browse files
committed
🐛 Fix some shexli warnings
1 parent 89bb60c commit 4afe04a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

extension.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,10 +769,12 @@ export default class DesktopCube extends Extension {
769769
this._pressureBarrier.destroy();
770770
this._leftBarrier.destroy();
771771
this._rightBarrier.destroy();
772+
this._pitch.destroy();
772773

773774
this._pressureBarrier = null;
774775
this._leftBarrier = null;
775776
this._rightBarrier = null;
777+
this._pitch = null;
776778

777779
// Clean up perspective correction.
778780
this._disablePerspectiveCorrection();

prefs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,10 @@ export default class DesktopCubePreferences extends ExtensionPreferences {
145145

146146
// As we do not have something like a destructor, we just listen for the destroy
147147
// signal of our general page.
148-
this._pages[0].connect('destroy', () => {
148+
window.connect('close-request', () => {
149149
// Unregister our resources.
150150
Gio.resources_unregister(this._resources);
151+
this._resources = null;
151152
});
152153
}
153154

0 commit comments

Comments
 (0)