[Spice-devel] [PATCH spice-server] stream: Remove region leak

Jonathon Jongsma jjongsma at redhat.com
Tue Feb 28 21:23:41 UTC 2017


Acked-by: Jonathon Jongsma <jjongsma at redhat.com>

On Tue, 2017-02-28 at 16:30 +0000, Frediano Ziglio wrote:
> clip_in_draw_dest was not freed correctly.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  server/stream.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/server/stream.c b/server/stream.c
> index e2cd66e..9d9ec1d 100644
> --- a/server/stream.c
> +++ b/server/stream.c
> @@ -316,6 +316,7 @@ static void attach_stream(DisplayChannel
> *display, Drawable *drawable, Stream *s
>              region_or(&agent->clip, &drawable->tree_item.base.rgn);
>              dcc_stream_agent_clip(dcc, agent);
>          }
> +        region_destroy(&clip_in_draw_dest);
>  #ifdef STREAM_STATS
>          agent->stats.num_input_frames++;
>  #endif


More information about the Spice-devel mailing list