[cairo] cairo_font_face_t not freeing
ldo at geek-central.gen.nz
Tue May 2 12:26:12 UTC 2017
On Tue, 2 May 2017 08:05:06 -0400, Louis M wrote:
> The pointer before the 'cairo_font_face_destroy' should be valid
> because I didn't free the it yet. The output of this example program
> is this:
> Refcount before freeing=2
> Refcount after freeing=1
If the pointer is valid, then the refcount must be nonzero. So the
above numbers look fine.
You can never see a meaningful refcount of zero, because by then the
pointer will not be valid.
More information about the cairo