If a DisplayChannelClient cannot be instantiated capabilities are not released correctly. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/red-worker.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/red-worker.c b/server/red-worker.c index 03a409cd..8fd964ea 100644 --- a/server/red-worker.c +++ b/server/red-worker.c @@ -724,14 +724,13 @@ static void handle_dev_display_connect(void *opaque, void *payload) dcc = dcc_new(display, msg->client, msg->stream, msg->migration, &msg->caps, worker->image_compression, worker->jpeg_state, worker->zlib_glz_state); + red_channel_capabilities_reset(&msg->caps); if (!dcc) { return; } display_channel_update_compression(display, dcc); guest_set_client_capabilities(worker); dcc_start(dcc); - - red_channel_capabilities_reset(&msg->caps); } static void handle_dev_display_disconnect(void *opaque, void *payload) -- 2.13.5 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel