sna: Unregister the BlockHandler on close

Now that we register a callback with an external stack and not the
screen, we have to remove it when the screen is destroyed.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-07-21 12:34:28 +01:00
parent d39197bb10
commit 6988b873b0
1 changed files with 6 additions and 0 deletions

View File

@ -949,6 +949,12 @@ static Bool sna_early_close_screen(CLOSE_SCREEN_ARGS_DECL)
/* XXX Note that we will leak kernel resources if !vtSema */
#if HAVE_NOTIFY_FD
RemoveBlockAndWakeupHandlers(sna_block_handler,
(ServerWakeupHandlerProcPtr)NoopDDA,
sna);
#endif
sna_uevent_fini(sna);
sna_mode_close(sna);