validate_surface already do the same checks. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/red-worker.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/red-worker.c b/server/red-worker.c index 590412b..e39bd84 100644 --- a/server/red-worker.c +++ b/server/red-worker.c @@ -693,12 +693,6 @@ static void destroy_primary_surface(RedWorker *worker, uint32_t surface_id) return; spice_warn_if_fail(surface_id == 0); - spice_debug(NULL); - if (!display->surfaces[surface_id].context.canvas) { - spice_warning("double destroy of primary surface"); - return; - } - flush_all_qxl_commands(worker); display_channel_destroy_surface_wait(display, 0); display_channel_surface_unref(display, 0); -- 2.7.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel