Commit c2271fa7 authored by Nicolas George's avatar Nicolas George

lavfi: free partial audio buffers when destroying links.

Fix a memleak that the recent change of architecture made
more likely to happen.
parent 081a822b
...@@ -156,6 +156,8 @@ void avfilter_link_free(AVFilterLink **link) ...@@ -156,6 +156,8 @@ void avfilter_link_free(AVFilterLink **link)
if ((*link)->pool) if ((*link)->pool)
ff_free_pool((*link)->pool); ff_free_pool((*link)->pool);
avfilter_unref_bufferp(&(*link)->partial_buf);
av_freep(link); av_freep(link);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment