I am no familiar with Cairo, my vld tool report there is memory leak in imagemagick-6.8.8\cairo\src\cairo-image-surface.c (181): _cairo_image_surface_create_for_pixman_image.
I checked that chunk source code.
Code: Select all
cairo_surface_t *
_cairo_image_surface_create_for_pixman_image (pixman_image_t *pixman_image,
pixman_format_code_t pixman_format)
{
cairo_image_surface_t *surface;
surface = malloc (sizeof (cairo_image_surface_t));
if (unlikely (surface == NULL))
return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_NO_MEMORY));
_cairo_surface_init (&surface->base,
&_cairo_image_surface_backend,
NULL, /* device */
_cairo_content_from_pixman_format (pixman_format));
_cairo_image_surface_init (surface, pixman_image, pixman_format);
return &surface->base;
}
Sorry for the million questions I posted in last couple days. This is a major update, my test set files generated lots of problem.