diff options
author | wm4 <wm4@nowhere> | 2016-09-08 20:59:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-08 20:59:24 +0200 |
commit | ca55a3292214c8bb2bc2340a159524474f472cec (patch) | |
tree | 5e237eb3ba8ce270c8dcfae974e43ea67262bb65 | |
parent | c8cc1f401bb80b92aa81292fe54d7659a4601e0f (diff) | |
download | mpv-ca55a3292214c8bb2bc2340a159524474f472cec.tar.bz2 mpv-ca55a3292214c8bb2bc2340a159524474f472cec.tar.xz |
stream_bluray: fix a minor memory leak
-rw-r--r-- | stream/stream_bluray.c | 5 |
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) { |