Re: Memory leak reading SVG image
Bob Friesenhahn <[email protected]> Mon, 10 Oct 2005 09:35:40 -0500 (CDT)
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 10 Oct 2005, Achim Domma wrote:
> Bob Friesenhahn wrote:
>
>> [...] in that the Image accumulates every MVG drawing command since the
>> dawn of (its) time in a huge attribute string with the key "[MVG]". [...]
>>
>> It is likely that adding the line
>>
>> image.attribute("[MVG]","");
>>
>> to the loop will eliminate most of the leak by resetting the attribute to
>> an empty string.
>
> That seems not to be the problem. I have modified the loop like this:
I notice that the ChangeLog for the latest ImageMagick mentions a
memory leak fix for SVG. Any such fix is likely necessary for
GraphicsMagick as well.
Bob
======================================
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl