mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-09 19:08:26 +02:00
surface: Fail if set_mime_data() is called on a finished surface
Caught by api-special-cases test
This commit is contained in:
parent
e388ff1ae7
commit
8fd1ecea12
1 changed files with 2 additions and 0 deletions
|
|
@ -857,6 +857,8 @@ cairo_surface_set_mime_data (cairo_surface_t *surface,
|
|||
|
||||
if (unlikely (surface->status))
|
||||
return surface->status;
|
||||
if (surface->finished)
|
||||
return _cairo_surface_set_error (surface, CAIRO_STATUS_SURFACE_FINISHED);
|
||||
|
||||
status = _cairo_intern_string (&mime_type, -1);
|
||||
if (unlikely (status))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue