summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Lang <mlang@delysid.org>2004-02-02 13:12:49 +0000
committerMario Lang <mlang@delysid.org>2004-02-02 13:12:49 +0000
commita71f5db29155d23b3f0672f98d560b368093631c (patch)
tree86ec2cd000b9f33e3a9ddc52a08e0c20bca18b4c
parent28eee95687d1a91f6895515e124d596c6134fc3c (diff)
(chess-module-destroy): chess-module-detach-game was called outside
of the module buffer with argument nil, which obviously fails.
-rw-r--r--chess-module.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/chess-module.el b/chess-module.el
index 59f51e6..d623d5b 100644
--- a/chess-module.el
+++ b/chess-module.el
@@ -88,8 +88,8 @@
(let ((buf (or module (current-buffer))))
(when (buffer-live-p buf)
(with-current-buffer buf
- (remove-hook 'kill-buffer-hook 'chess-module-destroy t))
- (chess-module-detach-game nil)
+ (remove-hook 'kill-buffer-hook 'chess-module-destroy t)
+ (chess-module-detach-game nil))
(kill-buffer buf))))
(defun chess-module-event-handler (game object event &rest args)