summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-04 03:32:12 +0200
committerwm4 <wm4@nowhere>2012-08-04 19:59:55 +0200
commitc7be71ae710280f750c14973e303ec3550e94ec3 (patch)
tree4be50ceb79a3ca5bf2e2ade3ea7b36ab81085bbc /command.c
parenta425777b96a17483d06a4851c7e84ae7483aa754 (diff)
downloadmpv-c7be71ae710280f750c14973e303ec3550e94ec3.tar.bz2
mpv-c7be71ae710280f750c14973e303ec3550e94ec3.tar.xz
command, mplayer: free return value of demuxer_stream_lang()
Diffstat (limited to 'command.c')
-rw-r--r--command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/command.c b/command.c
index bf3acba5c6..6ec37d4f26 100644
--- a/command.c
+++ b/command.c
@@ -2686,6 +2686,7 @@ static void show_tracks_on_osd(MPContext *mpctx)
char *lang = demuxer_stream_lang(mpctx->demuxer, sh);
if (lang)
res = talloc_asprintf_append(res, "(%s) ", lang);
+ talloc_free(lang);
if (selected)
res = talloc_asprintf_append(res, "<");
res = talloc_asprintf_append(res, "\n");