summaryrefslogtreecommitdiffstats
path: root/mpvcore/timeline/tl_edl.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/timeline/tl_edl.c')
-rw-r--r--mpvcore/timeline/tl_edl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpvcore/timeline/tl_edl.c b/mpvcore/timeline/tl_edl.c
index 4b8cf7ed17..6fdcd6685c 100644
--- a/mpvcore/timeline/tl_edl.c
+++ b/mpvcore/timeline/tl_edl.c
@@ -349,6 +349,7 @@ void build_edl_timeline(struct MPContext *mpctx)
struct demuxer **sources = talloc_array_ptrtype(NULL, sources,
num_sources + 1);
+ talloc_free(mpctx->sources);
mpctx->sources = sources;
sources[0] = mpctx->demuxer;
mpctx->num_sources = 1;