Commit 97c43efb authored by Frediano Ziglio's avatar Frediano Ziglio
Browse files

channel-display: Remove leak if surface is reused

"surface" parameters is normally attached to "surfaces" hash table
but in case surface is reused the buffer is not freed.

This problem was reported by Ding Fei.
Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <>
Acked-by: default avatarMarc-André Lureau <>
parent 7efeb298
Pipeline #200465 passed with stage
in 4 minutes and 26 seconds
......@@ -993,6 +993,7 @@ static int create_canvas(SpiceChannel *channel, display_surface *surface)
if (c->primary) {
if (c->primary->width == surface->width &&
c->primary->height == surface->height) {
CHANNEL_DEBUG(channel, "Reusing existing primary surface");
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment