From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#576: 23.0.60; displaying SVG leaks memory Date: Fri, 25 Jul 2008 01:25:42 -0400 Message-ID: <20080725012542.epkoc54ee7ks8occ@webmail.mit.edu> Reply-To: Chong Yidong , 576@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216964863 25801 80.91.229.12 (25 Jul 2008 05:47:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2008 05:47:43 +0000 (UTC) Cc: 576@emacsbugs.donarmstrong.com To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 25 07:48:32 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KMGAI-0007r6-KL for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Jul 2008 07:48:30 +0200 Original-Received: from localhost ([127.0.0.1]:43260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KMG9O-00079N-VI for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Jul 2008 01:47:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KMG9D-00077I-Is for bug-gnu-emacs@gnu.org; Fri, 25 Jul 2008 01:47:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KMG9C-00076P-F0 for bug-gnu-emacs@gnu.org; Fri, 25 Jul 2008 01:47:22 -0400 Original-Received: from [199.232.76.173] (port=39354 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KMG9C-000767-34 for bug-gnu-emacs@gnu.org; Fri, 25 Jul 2008 01:47:22 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58068) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KMG9B-0002Nm-Nf for bug-gnu-emacs@gnu.org; Fri, 25 Jul 2008 01:47:22 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6P5lJDV014119; Thu, 24 Jul 2008 22:47:19 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m6P5Z3qY010663; Thu, 24 Jul 2008 22:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 25 Jul 2008 05:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 576 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 576-submit@emacsbugs.donarmstrong.com id=B576.12169635699418 (code B ref 576); Fri, 25 Jul 2008 05:35:03 +0000 Original-Received: (at 576) by emacsbugs.donarmstrong.com; 25 Jul 2008 05:26:09 +0000 Original-Received: from south-station-annex.mit.edu (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6P5Q5fE009412 for <576@emacsbugs.donarmstrong.com>; Thu, 24 Jul 2008 22:26:06 -0700 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id m6P5Q0Nh003405; Fri, 25 Jul 2008 01:26:00 -0400 (EDT) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id m6P5PlNV023031; Fri, 25 Jul 2008 01:25:51 -0400 (EDT) Original-Received: from w92-130-webmail-5.mit.edu (WEBMAIL-SNAT.MIT.EDU [18.7.22.108]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id m6P5Pgt3026672; Fri, 25 Jul 2008 01:25:42 -0400 (EDT) Original-Received: (from nobody@localhost) by w92-130-webmail-5.mit.edu (8.12.4) id m6P5Pg65019117; Fri, 25 Jul 2008 01:25:42 -0400 Original-Received: from c-24-63-201-57.hsd1.ma.comcast.net (c-24-63-201-57.hsd1.ma.comcast.net [24.63.201.57]) (User authenticated as cyd@ATHENA.MIT.EDU) by webmail.mit.edu (Horde MIME library) with HTTP; Fri, 25 Jul 2008 01:25:42 -0400 Content-Disposition: inline User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Scanned-By: MIMEDefang 2.42 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 25 Jul 2008 01:47:22 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18846 Archived-At: > The following form makes Emacs use increasingly more memory: > > (progn > (find-file "~/emacs/etc/images/splash.svg") > (while t > (image-toggle-display) > (redisplay))) Does the following patch fix the memory leak for you? *** trunk/src/image.c.~1.106.~ 2008-07-22 00:51:50.000000000 -0400 --- trunk/src/image.c 2008-07-25 01:23:04.000000000 -0400 *************** *** 9025,9030 **** --- 9025,9031 ---- went ok. */ pixbuf = fn_rsvg_handle_get_pixbuf (rsvg_handle); eassert (pixbuf); + fn_rsvg_handle_free (rsvg_handle); /* Extract some meta data from the svg handle. */ width = fn_gdk_pixbuf_get_width (pixbuf);