[PATCH weston] pixman-renderer: copy_to_hw_buffer: don't leak output_region

Pekka Paalanen ppaalanen at gmail.com
Thu Sep 4 02:01:06 PDT 2014


On Thu,  4 Sep 2014 01:56:53 +0900
Ryo Munakata <ryomnktml at gmail.com> wrote:

> This was reported by Valgrind.
> 
> Signed-off-by: Ryo Munakata <ryomnktml at gmail.com>
> ---
>  src/pixman-renderer.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/pixman-renderer.c b/src/pixman-renderer.c
> index 351f00e..2c26c3a 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 */

Very good, pushed.


Thanks,
pq


More information about the wayland-devel mailing list