[gnome-shell/wip/smartcard: 2/16] authPrompt: disassociate from userVerifier when destroyed



commit a04895383ad2c92388fff34418df0c19f9ddc4c4
Author: Ray Strode <rstrode redhat com>
Date:   Mon Jul 29 13:24:36 2013 -0400

    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

 js/gdm/authPrompt.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 0666294..6b2480b 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -123,6 +123,8 @@ const AuthPrompt = new Lang.Class({
 
     _onDestroy: function() {
         this._userVerifier.clear();
+        this._userVerifier.disconnectAll();
+        this._userVerifier = null;
     },
 
     _initButtons: function() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]