summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-08 20:59:24 +0200
committerwm4 <wm4@nowhere>2016-09-08 20:59:24 +0200
commitca55a3292214c8bb2bc2340a159524474f472cec (patch)
tree5e237eb3ba8ce270c8dcfae974e43ea67262bb65 /stream
parentc8cc1f401bb80b92aa81292fe54d7659a4601e0f (diff)
downloadmpv-ca55a3292214c8bb2bc2340a159524474f472cec.tar.bz2
mpv-ca55a3292214c8bb2bc2340a159524474f472cec.tar.xz
stream_bluray: fix a minor memory leak
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_bluray.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c
index 9ad56e5de0..81e4c00ba9 100644
--- a/stream/stream_bluray.c
+++ b/stream/stream_bluray.c
@@ -410,9 +410,10 @@ static int bluray_stream_open_internal(stream_t *s)
if (!ti)
continue;
+ char *time = mp_format_time(ti->duration / 90000, false);
MP_VERBOSE(s, "idx: %3d duration: %s (playlist: %05d.mpls)\n",
- i + 1, mp_format_time(ti->duration / 90000, false),
- ti->playlist);
+ i + 1, time, ti->playlist);
+ talloc_free(time);
/* try to guess which title may contain the main movie */
if (ti->duration > max_duration) {