Device.destroy

Decreases the reference count on device by one. If the result is zero, then device and all associated resources are freed. See cairo_device_reference(). This function may acquire devices if the last reference was dropped. Since 1.10

class Device
void
destroy
()

Meta