From 28a605a074afcde758ef0a2b1a7b5756f85b787a Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Tue, 15 Sep 2015 11:53:54 -0700 Subject: [PATCH] winner no longer holds on to dead frames This prevents a potentially massive memory leak --- lisp/winner.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/winner.el b/lisp/winner.el index fdf6213..ecb009b 100644 --- a/lisp/winner.el +++ b/lisp/winner.el @@ -177,6 +177,11 @@ You may want to include buffer names such as *Help*, *Apropos*, ;; Called whenever the window configuration changes ;; (a `window-configuration-change-hook'). (defun winner-change-fun () + + ;; cull dead frames + (setq winner-modified-list + (cl-remove-if-not 'frame-live-p winner-modified-list)) + (unless (or (memq (selected-frame) winner-modified-list) (/= 0 (minibuffer-depth))) (push (selected-frame) winner-modified-list))) -- 2.1.4