demux: fix memory leak when loading of ordered chapter file is aborted

This commit is contained in:
wm4 2016-06-07 21:56:09 +02:00
parent 5b5db336e9
commit 68796fbdf5
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}