Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
Chris Wilson committed Oct 10, 2008
1 parent ac3e4b4 commit eba9d87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cairo-image-surface.c
Expand Up @@ -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
**/
Expand Down

0 comments on commit eba9d87

Please sign in to comment.