summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxylosper <darklin20@gmail.com>2014-03-24 21:50:04 +0900
committerwm4 <wm4@nowhere>2014-03-30 17:51:45 +0200
commitcf8ff2fd87b5dcf7310eb552f251e6d901c6230e (patch)
tree07a99a1d6d0eb7c5970305f8f6b8128bf919e8a0
parent852c924a6061fc71dc6fd874f7ae2ddeea7f128b (diff)
downloadmpv-cf8ff2fd87b5dcf7310eb552f251e6d901c6230e.tar.bz2
mpv-cf8ff2fd87b5dcf7310eb552f251e6d901c6230e.tar.xz
stream_bluray: fix for significant memory leak
It's obvious but, since STREAM_CTRL_GET_TIME_LENGTH is called frequently, the amount of leaked memory here is quite big.
-rw-r--r--stream/stream_bluray.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c
index d7a8d0b0cf..ab8b6d6d38 100644
--- a/stream/stream_bluray.c
+++ b/stream/stream_bluray.c
@@ -187,6 +187,7 @@ static int bluray_stream_control(stream_t *s, int cmd, void *arg)
return STREAM_UNSUPPORTED;
*((double *) arg) = BD_TIME_TO_MP(ti->duration);
+ bd_free_title_info(ti);
return STREAM_OK;
}