Re: Gotcha with dynamically allocated surface sources.
M Joonas Pihlaja <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
Hello Phil, On Wed, 28 Sep 2011, Cope, Phil (GE Energy) wrote: > There doesn't appear to a way of registering a callback to be executed > when the surface reference count drops to zero, so I wonder how else > application programmers are supposed to handle this situation ? You should look at setting a destructor for your image data using cairo_surface_set_user_data(). Cheers, Joonas -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo