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: Mon, 10 Jan 2011 11:34:38 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

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.

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



reply via email to

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