emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using the ImageMagick backend seems to leak memory


From: Tassilo Horn
Subject: Re: Using the ImageMagick backend seems to leak memory
Date: Tue, 11 Jan 2011 18:43:35 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

address@hidden writes:

>> 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.
>
> Hmm. We can try.

Andreas already added DestroyMagickWand() calls that imply clearing, and
I locally added MagickWandTerminus() calls.  Right now, I presume the
leak is not on the IM side.

Your patch in the other mail (I'll try it later) seems to support that
guess.

> Anyway i asked the IM team:
> http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=17819
>
> Some other things:
> - Do you see the issue only when scaling?

No, always.

> - Only with PNG? Or also JPG?

I tested with PNG and TIF, and both have the problem.

Bye,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]