summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qxl_driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index bfbf444..9f96e1f 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -302,6 +302,12 @@ map_memory_helper(qxl_screen_t *qxl, int scrnIndex)
static void
qxl_unmap_memory(qxl_screen_t *qxl, int scrnIndex)
{
+#ifdef XSPICE
+ if (qxl->worker) {
+ qxl->worker->stop(qxl->worker);
+ spice_server_destroy(qxl->spice_server);
+ }
+#endif
unmap_memory_helper(qxl, scrnIndex);
qxl->ram = qxl->ram_physical = qxl->vram = qxl->rom = NULL;