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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.