diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-10 16:51:07 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-10 16:51:07 +0100 |
commit | eba9d87d541d89804f70e56874538a249de08502 (patch) | |
tree | 91d372f59b2bfe3dc0905336440e9d0f14220b5d | |
parent | ac3e4b4bea574c94de77ec15878d116b619ee3f4 (diff) |
[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.
-rw-r--r-- | src/cairo-image-surface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index daae8d16..3cb4cccd 100644 --- a/src/cairo-image-surface.c +++ b/src/cairo-image-surface.c @@ -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 **/ |