Call cairo_surface_flush() before setting finished

With the current code, the surface will never be flushed as the flush
function checks if the surface is finished, and if so, doesn't call the
vfunc. Ooops.
This commit is contained in:
Benjamin Otte 2010-05-30 20:12:31 +02:00
parent 467d5e7f90
commit 1c15510c3d

View file

@ -663,8 +663,8 @@ cairo_surface_finish (cairo_surface_t *surface)
if (surface->snapshot_of != NULL)
_cairo_surface_detach_snapshot (surface);
surface->finished = TRUE;
cairo_surface_flush (surface);
surface->finished = TRUE;
/* call finish even if in error mode */
if (surface->backend->finish) {