summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyo Munakata <ryomnktml@gmail.com>2014-09-04 01:56:53 +0900
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-09-04 11:59:49 +0300
commit389d205b58af5a716b4fcae1733b5a9db1d6e4c7 (patch)
treee4f08375bfe704dd54c6c2450f55ebd617119a13 /src
parent66951b7f87034e8e4d1cf0e95980de0b4abcbe20 (diff)
downloadweston-389d205b58af5a716b4fcae1733b5a9db1d6e4c7.tar.gz
pixman-renderer: copy_to_hw_buffer: don't leak output_region
This was reported by Valgrind. Signed-off-by: Ryo Munakata <ryomnktml@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/pixman-renderer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pixman-renderer.c b/src/pixman-renderer.c
index 351f00e7..2c26c3af 100644
--- a/src/pixman-renderer.c
+++ b/src/pixman-renderer.c
@@ -457,6 +457,7 @@ copy_to_hw_buffer(struct weston_output *output, pixman_region32_t *region)
region_global_to_output(output, &output_region);
pixman_image_set_clip_region32 (po->hw_buffer, &output_region);
+ pixman_region32_fini(&output_region);
pixman_image_composite32(PIXMAN_OP_SRC,
po->shadow_image, /* src */