From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Using the ImageMagick backend seems to leak memory Date: Fri, 07 Jan 2011 23:39:12 +0100 Message-ID: References: <87sjx6zczl.fsf@member.fsf.org> <30611405.post@talk.nabble.com> <874o9l86eb.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1294439979 9377 80.91.229.12 (7 Jan 2011 22:39:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2011 22:39:39 +0000 (UTC) Cc: Emacs-devel@gnu.org, Jashy , Miles Bader To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 07 23:39:32 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PbKy1-0002Vl-Ov for ged-emacs-devel@m.gmane.org; Fri, 07 Jan 2011 23:39:29 +0100 Original-Received: from localhost ([127.0.0.1]:48532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbKxv-0000zl-Qm for ged-emacs-devel@m.gmane.org; Fri, 07 Jan 2011 17:39:23 -0500 Original-Received: from [140.186.70.92] (port=53095 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbKxq-0000zg-HD for Emacs-devel@gnu.org; Fri, 07 Jan 2011 17:39:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbKxp-0002M7-Cc for Emacs-devel@gnu.org; Fri, 07 Jan 2011 17:39:18 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:44139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbKxp-0002Ly-7k; Fri, 07 Jan 2011 17:39:17 -0500 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 303E7188A171; Fri, 7 Jan 2011 23:39:13 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 6C10E1C001F4; Fri, 7 Jan 2011 23:39:13 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id rqvBLcOCPIHO; Fri, 7 Jan 2011 23:39:13 +0100 (CET) Original-Received: from igel.home (ppp-93-104-131-69.dynamic.mnet-online.de [93.104.131.69]) by mail.mnet-online.de (Postfix) with ESMTP; Fri, 7 Jan 2011 23:39:12 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id 54E00CA2A0; Fri, 7 Jan 2011 23:39:12 +0100 (CET) X-Yow: I LOVE juxtaposing th' splendor of an unpopulated ARROYO with th' SLEEK lines of ``NARCISSUS-X'', my new SPORTS UTILITY VEHICLE! In-Reply-To: <874o9l86eb.fsf@member.fsf.org> (Tassilo Horn's message of "Fri, 07 Jan 2011 09:28:12 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134356 Archived-At: Tassilo Horn writes: > Looking at the API, there's > > ClearMagickWand() clears resources associated with the wand. > The format of the ClearMagickWand method is: > > void ClearMagickWand(MagickWand *wand) > > A description of each parameter follows: > wand > the magick wand. > > In the emacs sources, that function's never called. So that's probably > the source of the leak. DestroyMagickWand should imply ClearMagickWand, IIUC. I've fixed a few resource leaks, but that did not really help. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."