[image] Warn about a potential NULL return after finish().

Improve the wording as suggested by
  https://bugs.freedesktop.org/show_bug.cgi?id=12659
to warn about the possibility of returning NULL even if the passed in
surface was an image surface.
This commit is contained in:
Chris Wilson 2008-10-10 16:51:07 +01:00
parent ac3e4b4bea
commit eba9d87d54

View file

@ -523,7 +523,8 @@ _cairo_image_surface_create_for_data_with_content (unsigned char *data,
* inspection or modification.
*
* Return value: a pointer to the image data of this surface or %NULL
* if @surface is not an image surface.
* if @surface is not an image surface, or if cairo_surface_finish()
* has been called.
*
* Since: 1.2
**/