From: Chong Yidong <cyd@MIT.EDU>
To: Markus Triska <markus.triska@gmx.at>
Cc: 576@emacsbugs.donarmstrong.com
Subject: bug#576: 23.0.60; displaying SVG leaks memory
Date: Fri, 25 Jul 2008 01:25:42 -0400 [thread overview]
Message-ID: <20080725012542.epkoc54ee7ks8occ@webmail.mit.edu> (raw)
> 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);
next reply other threads:[~2008-07-25 5:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-25 5:25 Chong Yidong [this message]
2008-07-25 8:21 ` bug#576: 23.0.60; displaying SVG leaks memory Markus Triska
-- strict thread matches above, loose matches on Subject: below --
2008-07-19 9:34 Markus Triska
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080725012542.epkoc54ee7ks8occ@webmail.mit.edu \
--to=cyd@mit.edu \
--cc=576@emacsbugs.donarmstrong.com \
--cc=markus.triska@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).