[vlc-commits] mux_m4: fix memory leak
Rémi Denis-Courmont
git at videolan.org
Sat Aug 22 09:30:13 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 22 10:29:55 2015 +0300| [77c9ae04c473c6140d96293c31117f0b344bf59b] | committer: Rémi Denis-Courmont
mux_m4: fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=77c9ae04c473c6140d96293c31117f0b344bf59b
---
modules/mux/mp4.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c
index 417cc60..c8895a1 100644
--- a/modules/mux/mp4.c
+++ b/modules/mux/mp4.c
@@ -3034,10 +3034,13 @@ static void CloseFrag(vlc_object_t *p_this)
if (mfra)
{
bo_t *mfro = box_full_new("mfro", 0, 0x0);
- if (mfro && mfra->b)
+ if (mfro)
{
- box_fix(mfra, mfra->b->i_buffer);
- bo_add_32be(mfro, mfra->b->i_buffer + MP4_MFRO_BOXSIZE);
+ if (mfra->b)
+ {
+ box_fix(mfra, mfra->b->i_buffer);
+ bo_add_32be(mfro, mfra->b->i_buffer + MP4_MFRO_BOXSIZE);
+ }
box_gather(mfra, mfro);
}
box_send(p_mux, mfra);
More information about the vlc-commits
mailing list