• Jakub Adam's avatar
    agent: Fix use of freed stream in nice_agent_dispose() · 9864f36b
    Jakub Adam authored
    nice_stream_close() calls agent_find_stream(), which iterates over
    agent->streams list.
    
    Therefore, when we're freeing agent->streams in a loop, we must also
    delete the respective GSList item from the list at the end of each
    iteration. Otherwise agent_find_stream() would stumble over already
    deleted NiceStream instance the next time it gets called.
    
    Fixes random crashes when running test-different-number-streams on
    Windows.
    9864f36b
Name
Last commit
Last update
agent Loading commit data...
docs Loading commit data...
examples Loading commit data...
gst Loading commit data...
m4 Loading commit data...
nice Loading commit data...
random Loading commit data...
scripts Loading commit data...
socket Loading commit data...
stun Loading commit data...
tests Loading commit data...
win32/vs9 Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LGPL Loading commit data...
COPYING.MPL Loading commit data...
ChangeLog Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.win32 Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
common.mk Loading commit data...
configure.ac Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...