avformat/aviobuf: Free white/black list in avio_context_free()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b61e510e75
commit
870cfed231
1 changed files with 5 additions and 0 deletions
|
|
@ -125,6 +125,11 @@ AVIOContext *avio_alloc_context(
|
|||
|
||||
void avio_context_free(AVIOContext **ps)
|
||||
{
|
||||
if (ps && *ps) {
|
||||
AVIOContext *s = *ps;
|
||||
av_freep(&s->protocol_whitelist);
|
||||
av_freep(&s->protocol_blacklist);
|
||||
}
|
||||
av_freep(ps);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue