mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 20:48:03 +02:00
[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:
parent
ac3e4b4bea
commit
eba9d87d54
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue