ImageMagick and memory leaks

Created by: anjos

The old version of ImageMagick (6.6.7) we are using at Idiap seems to be buggy (at least the Magick++ part). This might cause the memory not to be deallocated properly. I've tried to get rid of this problem using the low-level MagickCore API without success.

Please have a look at this thread for more information.

It would be nice if someone can have a look at the behaviour with a more recent ImageMagick version. valgrind might be used to track the leaks.