dc: the link condition make this case terminate loop

dpi_ring_item is changed but ignored

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-05-14 13:38:33 +01:00
parent a5a9b38f46
commit 1d39275c3d

View File

@ -483,7 +483,7 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
dpi = SPICE_UPCAST(RedDrawablePipeItem, dpi_ring_item);
for (;;) {
if (!link) {
break;
goto out_loop;
}
if (dpi && dcc == dpi->dcc) {
break;
@ -501,6 +501,7 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
link = link->next;
}
}
out_loop:
/* not sending other_drawable where possible */
drawable_remove_from_pipes(other_drawable);