aboutsummaryrefslogtreecommitdiff
path: root/hw/qxl.c
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2012-09-11 10:09:58 +0300
committerGerd Hoffmann <kraxel@redhat.com>2012-09-12 08:09:48 +0200
commit753b8b0d77ba1b343a35f9679cc777ea10a62bba (patch)
treecff607a0326b89486734a3752769691a1bf0fed0 /hw/qxl.c
parentab902981cf4d46834d82eb095f2b9ab159e017bf (diff)
downloadqemu-753b8b0d77ba1b343a35f9679cc777ea10a62bba.zip
qemu-753b8b0d77ba1b343a35f9679cc777ea10a62bba.tar.gz
qemu-753b8b0d77ba1b343a35f9679cc777ea10a62bba.tar.bz2
qxl: better cleanup for surface destroy
Add back a call to qxl_spice_destroy_surface_wait_complete() in qxl_spice_destroy_surface_wait(), that was removed by commit c480bb7da465186b84d8427e068ef7502e47ffbf It is needed to complete surface-removal cleanup, for non async. For async, qxl_spice_destroy_surface_wait_complete is called upon operation completion. Signed-off-by: Uri Lublin <uril@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/qxl.c')
-rw-r--r--hw/qxl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index e539134..12597e7 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -201,6 +201,7 @@ static void qxl_spice_destroy_surface_wait(PCIQXLDevice *qxl, uint32_t id,
spice_qxl_destroy_surface_async(&qxl->ssd.qxl, id, (uintptr_t)cookie);
} else {
qxl->ssd.worker->destroy_surface_wait(qxl->ssd.worker, id);
+ qxl_spice_destroy_surface_wait_complete(qxl, id);
}
}