mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 04:48:04 +02:00
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>
This commit is contained in:
parent
66951b7f87
commit
389d205b58
1 changed files with 1 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue