gdmUtil: Fix SignalTracker leak in ShellUserVerifier

ShellUserVerifier was connecting to UserVerifierChoiceList signals using
SignalTracker, but never disconnected those, leading to the
corresponding SignalTracker being leaked.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6395
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2637>
This commit is contained in:
Sebastian Keller 2023-02-12 18:20:15 +01:00 committed by Marge Bot
parent 572d011894
commit 1236bf8f09

View File

@ -520,6 +520,7 @@ var ShellUserVerifier = class extends Signals.EventEmitter {
_disconnectSignals() { _disconnectSignals() {
this._userVerifier?.disconnectObject(this); this._userVerifier?.disconnectObject(this);
this._userVerifierChoiceList?.disconnectObject(this);
} }
_getForegroundService() { _getForegroundService() {