vnc: add magic cookie to VncState
commitf31f9c1080d8907c95f1501c6abab038eceb5490
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 7 May 2018 10:22:54 +0000 (7 12:22 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 15 May 2018 08:36:55 +0000 (15 10:36 +0200)
tree9f16e082465c821b35d560f1e28988dfc3778dc3
parent4f4cb8282df82d43ba6b3c9045a3ac6fc4c4ef09
vnc: add magic cookie to VncState

Set magic cookie on initialization.  Clear on cleanup.  Sprinkle a bunch
of assert()s checking the cookie, to verify the pointer is valid.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20180507102254.12107-1-kraxel@redhat.com
ui/vnc-jobs.c
ui/vnc.c
ui/vnc.h