[vlc-commits] access: bluray: fix leak
Francois Cartegnie
git at videolan.org
Thu Oct 25 21:55:57 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 25 18:02:01 2018 +0200| [ec05297470092d31e1fe9b1836143a33cddd493d] | committer: Francois Cartegnie
access: bluray: fix leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec05297470092d31e1fe9b1836143a33cddd493d
---
modules/access/bluray.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 9c4ea530d9..365874f54a 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -2694,7 +2694,7 @@ static void blurayOnClipUpdate(demux_t *p_demux, uint32_t clip)
assert(p_sys->p_clip_info->video_stream_count >= 1);
}
- const CLPI_CL *clpi = bd_get_clpi(p_sys->bluray, clip);
+ CLPI_CL *clpi = bd_get_clpi(p_sys->bluray, clip);
if(clpi && clpi->clip.application_type != p_sys->clip_application_type)
{
if(p_sys->clip_application_type == BD_CLIP_APP_TYPE_TS_MAIN_PATH_TIMED_SLIDESHOW ||
@@ -2705,6 +2705,7 @@ static void blurayOnClipUpdate(demux_t *p_demux, uint32_t clip)
es_out_Control(p_sys->p_out, BLURAY_ES_OUT_CONTROL_ENABLE_LOW_DELAY);
else
es_out_Control(p_sys->p_out, BLURAY_ES_OUT_CONTROL_DISABLE_LOW_DELAY);
+ bd_free_clpi(clpi);
}
vlc_mutex_unlock(&p_sys->pl_info_lock);
More information about the vlc-commits
mailing list