snapshot: Finish the clone.

Kill ref cycles from snapshots patterns by explicitly calling finish on
the cloned surface.
This commit is contained in:
Chris Wilson 2010-03-24 11:08:38 +00:00
parent db913d731e
commit b12114f296

View file

@ -47,6 +47,7 @@ _cairo_surface_snapshot_finish (void *abstract_surface)
{
cairo_surface_snapshot_t *surface = abstract_surface;
cairo_surface_finish (surface->clone);
cairo_surface_destroy (surface->clone);
return CAIRO_STATUS_SUCCESS;