[cairo] Issue with Font_Face reference count?

Carl Worth cworth at cworth.org
Tue Dec 16 15:45:16 PST 2008


On Tue, 2008-12-16 at 23:40 +0100, Anne et Damien Carbonne wrote:
> My idea was not to call it regularly, just once at the end.

It's certainly not needed for correctness. All it can do is slow things
down at the end.

> Or should we consider that this final cleanup is not necessary?

When your application is terminating, the operating system had better be
able to free all this memory itself, (or else the OS is broken).

So it's useful to call cairo_debug_reset_static_data when you are
debugging something, (ensuring that there are no memory leaks for
example), but not really useful at any other time.

-Carl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.cairographics.org/archives/cairo/attachments/20081216/9008e13f/attachment.pgp 


More information about the cairo mailing list