[cairo] How to free the memory allocated by
cairo_image_surface_create_for_png?
Charles Wang
charles.wang at akomedia.com
Sun Apr 3 23:12:29 PDT 2005
Hi:
I'm interesting at cairo greatly and have compose a test program to try
it. When I try to use memory leak tools (valgrind) to test it, I noticed
that the memory allocated at
cairo-png.c:302
data = malloc (png_width * png_height * pixel_size);
is not freed.
So I check the API of cairo, cairo-png not free it and there is no way
to let me know this pointer and free it.
Is there any method to avoid this memory leak?
Thanks.
Charles April 4th, 2005
More information about the cairo
mailing list