ui: remove misleading comment from vnc_init_state
The last line in vnc_init_state() says /* vs might be free()ed here */ This was added in commit198a0039c5
Author: Gerd Hoffmann <kraxel@redhat.com> Date: Tue Jun 16 14:19:48 2009 +0200 vnc: rework VncState release workflow. because the preceeding 'vnc_update_client()' could indeed release the VncState instance. The call to vnc_update_client() was removed not long after though in commit1fc624122f
Author: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Date: Mon Aug 3 10:54:32 2009 +0100 single vnc server surface and so the comment has been wrong ever since Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1475163940-26094-2-git-send-email-berrange@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
c264a88072
commit
ecccaea2f5
2
ui/vnc.c
2
ui/vnc.c
|
@ -3092,8 +3092,6 @@ void vnc_init_state(VncState *vs)
|
||||||
|
|
||||||
vs->mouse_mode_notifier.notify = check_pointer_type_change;
|
vs->mouse_mode_notifier.notify = check_pointer_type_change;
|
||||||
qemu_add_mouse_mode_change_notifier(&vs->mouse_mode_notifier);
|
qemu_add_mouse_mode_change_notifier(&vs->mouse_mode_notifier);
|
||||||
|
|
||||||
/* vs might be free()ed here */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean vnc_listen_io(QIOChannel *ioc,
|
static gboolean vnc_listen_io(QIOChannel *ioc,
|
||||||
|
|
Loading…
Reference in a new issue