summaryrefslogtreecommitdiff
path: root/src/sna/sna_composite.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-19 12:03:33 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-19 12:03:33 +0000
commita9d6f897e6d6dc388de24f7b49ba79bf1f6125c3 (patch)
tree7f66907bb597989bb8dc8894dc1d4cb31bc3ea0f /src/sna/sna_composite.c
parent0782d4e57e4ba33aee30925ad276ee4a1ec15feb (diff)
sna: Free composite boxes in the unlikely all-invalid path
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_composite.c')
-rw-r--r--src/sna/sna_composite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_composite.c b/src/sna/sna_composite.c
index 6078d525..56e34f3a 100644
--- a/src/sna/sna_composite.c
+++ b/src/sna/sna_composite.c
@@ -877,7 +877,7 @@ sna_composite_rectangles(CARD8 op,
}
if (num_boxes == 0)
- return;
+ goto cleanup_boxes;
if (!pixman_region_init_rects(&region, boxes, num_boxes))
goto cleanup_boxes;