device: flush before setting finished

Otherwise APIs critical for flushing - in particular acquiring the
device - do not work.
This commit is contained in:
Benjamin Otte 2010-06-03 18:54:18 +02:00
parent 35e219d08f
commit 932ab2641e

View file

@ -175,10 +175,10 @@ cairo_device_finish (cairo_device_t *device)
if (device->finished)
return;
device->finished = TRUE;
cairo_device_flush (device);
device->finished = TRUE;
if (device->backend->finish != NULL)
device->backend->finish (device);
}