From eba9d87d541d89804f70e56874538a249de08502 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 10 Oct 2008 16:51:07 +0100 Subject: [PATCH] [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. --- src/cairo-image-surface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index daae8d16d..3cb4cccdc 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 **/