mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-28 05:50:37 +00:00
vnc: remove bogus object_unref on client socket
vnc_listen_io() does not own the reference on the 'cioc' parameter is it
passed, so should not be unref'ing it.
Fixes: 13e1d0e71e
Reported-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20180215102602.10864-1-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
fb68096da3
commit
f42fdb24b7
1
ui/vnc.c
1
ui/vnc.c
@ -3152,7 +3152,6 @@ static void vnc_listen_io(QIONetListener *listener,
|
||||
isWebsock ? "vnc-ws-server" : "vnc-server");
|
||||
qio_channel_set_delay(QIO_CHANNEL(cioc), false);
|
||||
vnc_connect(vd, cioc, false, isWebsock);
|
||||
object_unref(OBJECT(cioc));
|
||||
}
|
||||
|
||||
static const DisplayChangeListenerOps dcl_ops = {
|
||||
|
Loading…
Reference in New Issue
Block a user