From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49956 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: Help closing a small memory "leak" Date: Sat, 08 Feb 2003 22:00:11 +0100 Organization: http://purl.org/harder/ Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044738089 14471 80.91.224.249 (8 Feb 2003 21:01:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2003 21:01:29 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hc5x-0003jT-00 for ; Sat, 08 Feb 2003 22:01:05 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18hc7V-0004Zw-00; Sat, 08 Feb 2003 15:02:41 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 08 Feb 2003 15:03:38 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id PAA25590 for ; Sat, 8 Feb 2003 15:03:26 -0600 (CST) Original-Received: (qmail 33564 invoked by alias); 8 Feb 2003 21:02:13 -0000 Original-Received: (qmail 33559 invoked from network); 8 Feb 2003 21:02:12 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 8 Feb 2003 21:02:12 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18hcFB-0005lA-00 for ; Sat, 08 Feb 2003 22:10:37 +0100 Original-To: ding@gnus.org Original-Path: localhost.localdomain!nobody Original-Newsgroups: gnus.ding Original-Lines: 21 Original-NNTP-Posting-Host: 0xc3f95367.esnxr2.ras.tele.dk Original-X-Trace: quimby.gnus.org 1044738637 22143 195.249.83.103 (8 Feb 2003 21:10:37 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 8 Feb 2003 21:10:37 GMT X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; writes: > Jesper Harder writes: > >> I've fixed the places that I have come across, but there's probably >> still some cases in parts of the code I don't use. > > How did you fix this? I added some code to `gnus-kill-buffer' to remove a buffer from `gnus-buffers' before it's killed: (defmacro gnus-kill-buffer (buffer) `(let ((buf ,buffer)) (when (gnus-buffer-exists-p buf) (when (boundp 'gnus-buffers) (setq gnus-buffers (delete (get-buffer buf) gnus-buffers))) (kill-buffer buf)))) That took care of many cases. For the rest I replaced `kill-buffer' with `gnus-kill-buffer'.