• Fabrice Bellet's avatar
    agent: avoid leak of all turn refreshes when disposing the agent · caf9f1d8
    Fabrice Bellet authored
    With this patch we free all outstanding refreshes when the agent dispose
    method is called, even those that are in the way to be discarded
    asynchronously, when a stream is removed.
    
    We also make the final user callback of the refresh proces synchronous,
    so we don't have to deal with an heap use-after-free problem. This also
    requires to order some parts of code.
    caf9f1d8
agent.c 222 KB