[Spice-commits] server/stream.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Tue Feb 28 23:06:44 UTC 2017


 server/stream.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit e4d06191ee5f3cedf791afc304f0c082bb9a7211
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Tue Feb 28 16:30:20 2017 +0000

    stream: Remove region leak
    
    clip_in_draw_dest was not freed correctly.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Jonathon Jongsma <jjongsma at redhat.com>

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-commits mailing list