vnc_async_encoding_end() does buffer_free() next.

Signed-off-by: Marc-André Lureau <[email protected]>
---
 ui/vnc-jobs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ui/vnc-jobs.c b/ui/vnc-jobs.c
index ec90ae6d5fc..a6ab733faa1 100644
--- a/ui/vnc-jobs.c
+++ b/ui/vnc-jobs.c
@@ -326,7 +326,6 @@ static int vnc_worker_thread_loop(VncJobQueue *queue)
 
         qemu_bh_schedule(job->vs->bh);
     }  else {
-        buffer_reset(&vs.output);
         /* Copy persistent encoding data */
         vnc_async_encoding_end(job->vs, &vs);
     }

-- 
2.53.0


Reply via email to