]> Git Repo - qemu.git/commitdiff
qxl: better cleanup for surface destroy
authorUri Lublin <[email protected]>
Tue, 11 Sep 2012 07:09:58 +0000 (10:09 +0300)
committerGerd Hoffmann <[email protected]>
Wed, 12 Sep 2012 06:09:48 +0000 (08:09 +0200)
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 <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/qxl.c

index e539134c65bd30c101549d46ed008d33ff730750..12597e75de3e3b4e122e881b0a39c7abb98014bd 100644 (file)
--- 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);
     }
 }
 
This page took 0.028392 seconds and 4 git commands to generate.