mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
server/red_worker: no panic on double destroy primary
This commit is contained in:
parent
c820b252c1
commit
d0e740eeaa
@ -10304,7 +10304,11 @@ static inline void handle_dev_destroy_primary_surface(RedWorker *worker)
|
||||
receive_data(worker->channel, &surface_id, sizeof(uint32_t));
|
||||
|
||||
PANIC_ON(surface_id != 0);
|
||||
PANIC_ON(!worker->surfaces[surface_id].context.canvas);
|
||||
|
||||
if (!worker->surfaces[surface_id].context.canvas) {
|
||||
red_printf("double destroy of primary surface\n");
|
||||
return;
|
||||
}
|
||||
|
||||
flush_all_qxl_commands(worker);
|
||||
destroy_surface_wait(worker, 0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user