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



commit 60315a6c9f719d7b8332f1a2726990b40fe2641f
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.

 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]