summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorrland jon <rlandjon@gmail.com>2021-04-20 18:13:47 +0800
committeravih <avih@users.noreply.github.com>2021-04-20 13:28:48 +0300
commitf665149fc889724ab011b6839f17568b1e9c69d0 (patch)
tree92deebbf8a1c2bb8c384246d6700f158df116e51 /demux
parent474ee003eddd278d871e7c1c760091b739880e8f (diff)
downloadmpv-f665149fc889724ab011b6839f17568b1e9c69d0.tar.bz2
mpv-f665149fc889724ab011b6839f17568b1e9c69d0.tar.xz
demux_lavf: fix minor memory leaks
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_lavf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index 1bc8699e15..2c69de447c 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -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;
}