In the spec for cairo_image_surface_create_from_png_stream(), the standard states: Returns : a new cairo_surface_t initialized with the contents of the PNG file or NULL if the data read is not a valid PNG image or memory could not be allocated for the operation. As my understanding, in case of fail, this function should return "nil" surface instead of NULL. So i suppose this spec should be: Returns : a new cairo_surface_t initialized with the contents of the PNG file or “nil” surface if the data read is not a valid PNG image or memory could not be allocated for the operation. Thank you very much for your time and please let me know any ruling/finding that you may have.
Thank you, I've updated the documentation to refer to the nil-surface.
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.