]> git.proxmox.com Git - qemu.git/commit
vnc: fix a memory leak in threaded vnc server
authorCorentin Chary <corentincj@iksaif.net>
Fri, 25 Feb 2011 21:54:53 +0000 (22:54 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 25 Feb 2011 22:04:43 +0000 (16:04 -0600)
commitc53af37f375ce9c4999ff451c51173bdc1167e67
tree55dbd29263542085dccb960893daa378e9b66395
parent30faaf7073dd51b9e06589d7886696a3f13f201c
vnc: fix a memory leak in threaded vnc server

VncJobQueue's buffer is intended to be used for
as the output buffer for all operations in this queue,
but unfortunatly.

vnc_async_encoding_start() is in charge of setting this
buffer as the current output buffer, but
vnc_async_encoding_end() was not writting the changes back
to VncJobQueue, resulting in a big and ugly memleak.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/vnc-jobs-async.c