From 777c5f1e436d334a57b650b6951c13d8d2799df0 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 9 Nov 2017 11:51:54 +0100 Subject: ui: fix dcl unregister MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Marc-André Lureau Message-id: 20171109105154.29414-1-kraxel@redhat.com --- ui/console.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ui') 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); } -- cgit v1.2.1