demux_lavf: fix minor memory leaks

This commit is contained in:
rland jon 2021-04-20 18:13:47 +08:00 committed by avih
parent 474ee003ed
commit f665149fc8
1 changed files with 2 additions and 0 deletions

View File

@ -1354,6 +1354,8 @@ static void demux_close_lavf(demuxer_t *demuxer)
}
if (priv->own_stream)
free_stream(priv->stream);
if (priv->av_opts)
av_dict_free(&priv->av_opts);
talloc_free(priv);
demuxer->priv = NULL;
}