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: joakim
Subject: Re: Using the ImageMagick backend seems to leak memory
Date: Tue, 11 Jan 2011 11:59:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Tassilo Horn <address@hidden> writes:

> Andreas Schwab <address@hidden> writes:
>
> Hi Andreas,
>
>>> Looking at the API, there's
>>>
>>> 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.
>>
>> DestroyMagickWand should imply ClearMagickWand, IIUC.
>>
>> I've fixed a few resource leaks, but that did not really help.

I just verified that using a dev IM doesnt help.

Maybe using Valgrind can help, but it doesnt work with emacs sadly.

>
> Looking at the code examples at 
>
>   http://www.imagemagick.org/api/magick-wand.php
>
> it seems one must call
>
>   MagickWandTerminus();
>
> after destroying the wands.
>
> Maybe that helps.
>
> Bye,
> Tassilo

-- 
Joakim Verona



reply via email to

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