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:
parent
28fea532cf
commit
f744fff84d
@ -294,7 +294,7 @@ igloo_ro_t igloo_list_iterator_next(igloo_list_iterator_t *iterator
|
||||
if (physical >= iterator->list->fill)
|
||||
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;
|
||||
|
||||
iterator->idx++;
|
||||
|
Loading…
Reference in New Issue
Block a user