Commit b12114f2 authored by Chris Wilson's avatar Chris Wilson 🤔
Browse files

snapshot: Finish the clone.

Kill ref cycles from snapshots patterns by explicitly calling finish on
the cloned surface.
parent db913d73
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment