[Spice-devel] [PATCH spice-server] stream: Remove region leak
Frediano Ziglio
fziglio at redhat.com
Tue Feb 28 16:30:54 UTC 2017
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
--
2.9.3
More information about the Spice-devel
mailing list