cairo_*_destroy() lack status return
Submitted by Steve Chaplin
Assigned to Carl Worth @cworth
Description
I'm trying to add PS/PDF/SVG stream support to pycairo and want to make sure that exceptions are raised when a stream write error occurs. The stream write function returns CAIRO_STATUS_WRITE_ERROR on a write error but the surface and cairo context ignore this and are not given an error status. So what is the purpose of returning CAIRO_STATUS_WRITE_ERROR?
The attached program demonstrates stream errors, for me it outputs: status (CAIRO_STATUS_SUCCESS is 0) libpng error: Write Error PNG 1 PS 0, 0 PS 0, 0 PS 0, 0 I/O error : flush error
I would expect all the status numbers to be non-zero (like PNG).
Version: 1.1.7