summaryrefslogtreecommitdiffstats
path: root/mpvcore/timeline/tl_matroska.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-08 05:17:05 +0200
committerwm4 <wm4@nowhere>2013-09-08 05:17:05 +0200
commit1aae5981a7165f5236a9f3a1518ab2b6f7c7eae9 (patch)
tree0394d98b09d646b2f8b9b8fba15f5a6dfbd88d1d /mpvcore/timeline/tl_matroska.c
parent222b8c6e0291c791391c572d273d4708bcd3b34f (diff)
downloadmpv-1aae5981a7165f5236a9f3a1518ab2b6f7c7eae9.tar.bz2
mpv-1aae5981a7165f5236a9f3a1518ab2b6f7c7eae9.tar.xz
core: remove a minor memory leak
Diffstat (limited to 'mpvcore/timeline/tl_matroska.c')
-rw-r--r--mpvcore/timeline/tl_matroska.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpvcore/timeline/tl_matroska.c b/mpvcore/timeline/tl_matroska.c
index 17ad192d37..cad1c3444e 100644
--- a/mpvcore/timeline/tl_matroska.c
+++ b/mpvcore/timeline/tl_matroska.c
@@ -365,6 +365,7 @@ void build_ordered_chapter_timeline(struct MPContext *mpctx)
if (missing_time)
mp_msg(MSGT_CPLAYER, MSGL_ERR, "There are %.3f seconds missing "
"from the timeline!\n", missing_time / 1e9);
+ talloc_free(mpctx->sources);
mpctx->sources = sources;
mpctx->num_sources = num_sources;
mpctx->timeline = timeline;