The documentation for cairo_image_surface_get_data is incomplete. It says "Returns : a pointer to the image data of this surface or NULL if surface is not an image surface." I think it should say Returns : a pointer to the image data of this surface or NULL if surface is not an image surface, or if cairo_surface_finish has been called." Its important for cairo bindings to know that the surface can be an image surface AND NULL can be returned, and if NULL is not checked for a segmentation fault could occur.
Thank you - documentation updated.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.