Re: Do I Need To Reference The Device?
Lawrence D'Oliveiro <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Organization | Geek Central |
| Message-ID | <[email protected]> |
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().” -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo