properly delete current channel in channel_free_list

channel_unregister() removes channels from the current smartlist while
we're in a SMORTLIST_FOREACH loop. This only works by accident.
This commit is contained in:
Sebastian Hahn
2015-08-29 17:00:51 +02:00
parent b531fc7d9a
commit bbb73eaf31
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
o Minor bugfixes:
- When calling channel_free_list(), avoid calling smartlist_remove()
while inside a FOREACH loop. This partially reverts commit
17356fe7fd96af where the correct SMARTLIST_DEL_CURRENT was
removed. Fixes bug 16929; bugfix on 0.2.4.4-alpha.