fix wrong assert causing streaming to crash

This regression was introduced by commit
18d3876b78
("UpgradeItem: use base PipeItem for refcounting")

This fix https://bugs.freedesktop.org/show_bug.cgi?id=95365.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-05-13 12:24:49 +01:00
parent 7673b388f5
commit 2c3fc80e51

View File

@ -761,7 +761,7 @@ void stream_agent_stop(StreamAgent *agent)
static void red_upgrade_item_free(RedUpgradeItem *item)
{
g_return_if_fail(item != NULL);
g_return_if_fail(item->base.refcount != 0);
g_return_if_fail(item->base.refcount == 0);
drawable_unref(item->drawable);
free(item->rects);