summaryrefslogtreecommitdiff
path: root/ui/console.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-11-09 11:51:54 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-11-10 11:06:43 +0100
commit777c5f1e436d334a57b650b6951c13d8d2799df0 (patch)
tree6dd206fdfb4b92da05de44dd59fe3704c5747872 /ui/console.c
parentb0fbe46ad82982b289a44ee2495b59b0bad8a842 (diff)
downloadqemu-777c5f1e436d334a57b650b6951c13d8d2799df0.tar.gz
ui: fix dcl unregister
register checks for dcl->ds being NULL, to avoid registering the same dcl twice. Therefore dcl->ds must be cleared on unregister, otherwise un-registering and re-registering doesn't work. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1510809 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20171109105154.29414-1-kraxel@redhat.com
Diffstat (limited to 'ui/console.c')
-rw-r--r--ui/console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c
index eca854cbd5..c4c95abed7 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1471,6 +1471,7 @@ void unregister_displaychangelistener(DisplayChangeListener *dcl)
dcl->con->dcls--;
}
QLIST_REMOVE(dcl, next);
+ dcl->ds = NULL;
gui_setup_refresh(ds);
}