summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorxylosper <darklin20@gmail.com>2014-03-24 21:50:04 +0900
committerxylosper <darklin20@gmail.com>2014-03-24 21:50:04 +0900
commit99044308b5820a450d5440f6c2a424cad02cb019 (patch)
tree0168f9f207d1c46eb0925363a7c455e9d46ce2de /stream
parentf4fe22266d97b01833f1df6048c484ff066726a2 (diff)
downloadmpv-99044308b5820a450d5440f6c2a424cad02cb019.tar.bz2
mpv-99044308b5820a450d5440f6c2a424cad02cb019.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.
Diffstat (limited to 'stream')
-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 9c9dd4f7d0..6836da22d0 100644
--- a/stream/stream_bluray.c
+++ b/stream/stream_bluray.c
@@ -196,6 +196,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;
}