• 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
..
Makefile.am Loading commit data...
address.c Loading commit data...
address.h Loading commit data...
agent-priv.h Loading commit data...
agent.c Loading commit data...
agent.h Loading commit data...
candidate.c Loading commit data...
candidate.h Loading commit data...
component.c Loading commit data...
component.h Loading commit data...
conncheck.c Loading commit data...
conncheck.h Loading commit data...
debug.c Loading commit data...
debug.h Loading commit data...
discovery.c Loading commit data...
discovery.h Loading commit data...
inputstream.c Loading commit data...
inputstream.h Loading commit data...
interfaces.c Loading commit data...
interfaces.h Loading commit data...
iostream.c Loading commit data...
iostream.h Loading commit data...
meson.build Loading commit data...
outputstream.c Loading commit data...
outputstream.h Loading commit data...
pseudotcp.c Loading commit data...
pseudotcp.h Loading commit data...
stream.c Loading commit data...
stream.h Loading commit data...