[cairo] How to free the memory allocated by cairo_image_surface_create_for_png?

Carl Worth cworth at cworth.org
Mon Apr 4 09:48:54 PDT 2005


On Mon, 04 Apr 2005 14:12:29 +0800, Charles Wang wrote:
> Is there any method to avoid this memory leak?

Thanks for the bug report. I've just committed a fix.

The fix I used takes advantage of a private function. But the same
issue shows up in code outside of cairo. In that case,
cairo_surface_set_user_data can be used to solve similar problems.

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050404/e3cb9780/attachment.pgp


More information about the cairo mailing list