Device.finish

This function finishes the device and drops all references to external resources. All surfaces, fonts and other objects created for this device will be finished, too. Further operations on the device will not affect the device but will instead trigger a CAIRO_STATUS_DEVICE_FINISHED exception.

When the reference count reaches zero, cairo will call finish() if it hasn't been called already, before freeing the resources associated with the device.

This function may acquire devices.

class Device
void
finish
()

Bugs

How does "All surfaces, fonts and other objects created for this device will be finished" interact with the cairoD?

Meta