summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cairo-surface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-surface.c b/src/cairo-surface.c
index d0e3a55c..a5439c2a 100644
--- a/src/cairo-surface.c
+++ b/src/cairo-surface.c
@@ -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))