worker: remove assertion on alloc_drawable

There is no guarantee in the code that this can't be hit, so we should
cope with it (the condition can be reached easily by running the server
without waiting for blocked clients or pipe size)

The following commit will attempt to address this.

Acked-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Marc-André Lureau 2013-09-12 15:30:58 +02:00 committed by Frediano Ziglio
parent 2eb732bd4d
commit 5c7e248445

View File

@ -3513,7 +3513,9 @@ static void free_one_drawable(RedWorker *worker, int force_glz_free)
Drawable *drawable;
Container *container;
spice_assert(ring_item);
if (!ring_item) {
return;
}
drawable = SPICE_CONTAINEROF(ring_item, Drawable, list_link);
if (force_glz_free) {
RingItem *glz_item, *next_item;