clip: Fix clip-double-free

If the call to _cairo_clip_set_all_clipped() right after this is hit,
clip->boxes was freed twice.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2011-10-09 09:37:03 +02:00
parent 4092e90be5
commit dca4e6c2dd

View file

@ -294,6 +294,7 @@ _cairo_clip_intersect_boxes (cairo_clip_t *clip,
if (clip->boxes != &clip->embedded_box)
free (clip->boxes);
clip->boxes = NULL;
boxes = &clip_boxes;
}