[cairo] Issue with Font_Face reference count?

Anne et Damien Carbonne aetdcarbonne at free.fr
Tue Dec 16 14:40:07 PST 2008


Carl Worth a écrit :
> On Sun, 2008-12-14 at 20:09 +0100, Anne et Damien Carbonne wrote:
>   
>> Thanks for rapid answer.
>>
>> Why is this function called that way (_debug_)? Compliance with previous 
>> versions?
>> If it is only intended for debug purpose, then it means that the 
>> solution I have used for the binding is wrong :-(
>>     
>
> It is only intended for debugging purposes. Since it flushes all of
> cairo's caches, it would be extremely unkind to your application's
> performance if this function were called with any regularity.
>
> It looks here like the "_debug_" in the name helped raise exactly the
> red flag in your mind that it should.
>
> -Carl
>
>   
My idea was not to call it regularly, just once at the end.
When using the native C cairo version, is there any guideline to free 
all user data (at the end) ?
Or should we consider that this final cleanup is not necessary?

Damien


More information about the cairo mailing list