summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 90cf15c8b3..09ff374275 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3308,7 +3308,7 @@ char *chapter_display_name(struct MPContext *mpctx, int chapter)
{
if (!mpctx->chapters || !mpctx->sh_video)
return demuxer_chapter_display_name(mpctx->demuxer, chapter);
- return strdup(mpctx->chapters[chapter].name);
+ return talloc_strdup(NULL, mpctx->chapters[chapter].name);
}
int seek_chapter(struct MPContext *mpctx, int chapter, double *seek_pts,