authPrompt: disassociate from userVerifier when destroyed

Otherwise, it won't get GC'd and we'll end up potentially calling
its signal handlers after destruction.

https://bugzilla.gnome.org/show_bug.cgi?id=683437
This commit is contained in:
Ray Strode 2013-07-29 13:24:36 -04:00
parent b1c2f4a8d6
commit 69957dac3d

View File

@ -123,6 +123,8 @@ const AuthPrompt = new Lang.Class({
_onDestroy: function() {
this._userVerifier.clear();
this._userVerifier.disconnectAll();
this._userVerifier = null;
},
_initButtons: function() {