[cairo] Do I Need To Reference The Device?
Lawrence D'Oliveiro
ldo at geek-central.gen.nz
Sun Mar 8 00:48:18 PST 2015
On Sun, 08 Mar 2015 00:22:34 -0800, Behdad Esfahbod wrote:
> On 15-03-07 08:10 PM, Lawrence D'Oliveiro wrote:
>
>> Do I need to call cairo_device_reference on the result from
>> cairo_surface_get_device
>> <http://cairographics.org/manual/cairo-cairo-surface-t.html#cairo-surface-get-device>
>> if I want to keep the reference?
>
> Yes, you need to reference that.
OK, suitable patch committed.
>> Is this an omission in the documentation?
>
> Sounds about it. Patches welcome!
I guess all you need to do is append the usual boilerplate line: “This
object is owned by cairo. To keep a reference to it, you must call
cairo_device_reference().”
More information about the cairo
mailing list