From: Thien-Thi Nguyen Date: Wed, 8 Sep 2004 10:28:17 +0000 (+0000) Subject: (Info-insert-dir): Fix temp buffer leak bug. X-Git-Tag: ttn-vms-21-2-B4~5016 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dc9bec220d9fe9efadcff061685d4774685ab5c1;p=emacs.git (Info-insert-dir): Fix temp buffer leak bug. --- diff --git a/lisp/info.el b/lisp/info.el index 802fcf1642e..b779bb41ca6 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -1062,8 +1062,8 @@ a case-insensitive match is tried." ;; into the menu in the like-named node in the main buffer. (apply 'insert-buffer-substring (cdr node)))) (Info-dir-remove-duplicates) - ;; Kill all the buffers we just made. - (mapc 'kill-buffer buffers) + ;; Kill all the buffers we just made, including the special one excised. + (mapc 'kill-buffer (cons buffer buffers)) (goto-char (point-min)) (if problems (message "Composing main Info directory...problems encountered, see `*Messages*'")