1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

Fix: Corrected igloo_list_iterator_next()'s reference counting

This commit is contained in:
Philipp Schafft 2018-11-08 13:15:11 +00:00
parent 28fea532cf
commit f744fff84d

View File

@ -294,7 +294,7 @@ igloo_ro_t igloo_list_iterator_next(igloo_list_iterator_t *iterator
if (physical >= iterator->list->fill) if (physical >= iterator->list->fill)
return igloo_RO_NULL; return igloo_RO_NULL;
if (igloo_ro_unref(iterator->list->elements[physical]) == 0) if (igloo_ro_ref(iterator->list->elements[physical]) != 0)
return igloo_RO_NULL; return igloo_RO_NULL;
iterator->idx++; iterator->idx++;