mirror of https://github.com/mpv-player/mpv
demux: fix memory leak when loading of ordered chapter file is aborted
This commit is contained in:
parent
5b5db336e9
commit
68796fbdf5
|
@ -1129,6 +1129,7 @@ static struct demuxer *open_given_type(struct mpv_global *global,
|
|||
¶ms2, DEMUX_CHECK_FORCE);
|
||||
if (sub)
|
||||
return sub;
|
||||
timeline_destroy(tl);
|
||||
}
|
||||
return demuxer;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue