cairo_reference3cairo_referenceincrease reference count of cairo_t
void cairo_reference (cairo_t *cr)cr :a cairo_tDescriptionfunctionscairo_reference
When calling cairo_reference the reference count will be increased by one and the caller becomes owner of the cairo_t. When the creator of the cairo_t destroys the the object via cairo_destroy the refcount will be decreased but the object will stay valid, since you are still owner of the object.