Commit 90c6963d authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter picture pool: double free hotfix

This fix introduces a small memleak
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6cbe8199
...@@ -182,10 +182,11 @@ void avfilter_link_free(AVFilterLink **link) ...@@ -182,10 +182,11 @@ void avfilter_link_free(AVFilterLink **link)
av_freep(&picref->audio); av_freep(&picref->audio);
av_freep(&picref->video); av_freep(&picref->video);
av_freep(&picref); av_freep(&(*link)->pool->pic[i]);
} }
} }
av_freep(&(*link)->pool); (*link)->pool->count = 0;
// av_freep(&(*link)->pool);
} }
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