summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-06-07 21:56:09 +0200
committerwm4 <wm4@nowhere>2016-06-07 21:56:09 +0200
commit68796fbdf5277b2c1a48263c770bc6595ed61482 (patch)
treeee75a46866d64b3af543391ed129c31c087c0453 /demux
parent5b5db336e93622dc4c54e02a42a39d1b3b1a9fbd (diff)
downloadmpv-68796fbdf5277b2c1a48263c770bc6595ed61482.tar.bz2
mpv-68796fbdf5277b2c1a48263c770bc6595ed61482.tar.xz
demux: fix memory leak when loading of ordered chapter file is aborted
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c
index bedc2bf294..6038d244e0 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -1129,6 +1129,7 @@ static struct demuxer *open_given_type(struct mpv_global *global,
&params2, DEMUX_CHECK_FORCE);
if (sub)
return sub;
+ timeline_destroy(tl);
}
return demuxer;
}