GNU bug report logs - #576
23.0.60; displaying SVG leaks memory

Previous Next

Package: emacs;

Reported by: Markus Triska <markus.triska <at> gmx.at>

Date: Sat, 19 Jul 2008 09:40:05 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 576 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> MIT.EDU>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: 576 <at> debbugs.gnu.org
Subject: Re: 23.0.60; displaying SVG leaks memory
Date: Fri, 25 Jul 2008 01:25:42 -0400
> 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);




This bug report was last modified 16 years and 305 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.