[vlc-commits] mux: mp4: fix leaks
Francois Cartegnie
git at videolan.org
Tue Jan 16 00:18:05 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 15 23:54:00 2018 +0100| [80819755adc8b2fce1afd0ace63c4f6d069132f6] | committer: Francois Cartegnie
mux: mp4: fix leaks
(cherry picked from commit 9cef5b98a741c0f9d29cca7ef3490cfb1b658932)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=80819755adc8b2fce1afd0ace63c4f6d069132f6
---
modules/mux/mp4/mp4.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/mux/mp4/mp4.c b/modules/mux/mp4/mp4.c
index b3393c7afd..2daeceeba5 100644
--- a/modules/mux/mp4/mp4.c
+++ b/modules/mux/mp4/mp4.c
@@ -356,8 +356,7 @@ cleanup:
mp4mux_trackinfo_Clear(&p_stream->mux);
free(p_stream);
}
- if (p_sys->i_nb_streams)
- free(p_sys->pp_streams);
+ TAB_CLEAN(p_sys->i_nb_streams, p_sys->pp_streams);
free(p_sys);
}
@@ -1336,7 +1335,11 @@ static void CleanupFrag(sout_mux_sys_t *p_sys)
p_stream->towrite.p_first = p_next;
}
free(p_stream->p_indexentries);
+
+ mp4mux_trackinfo_Clear(&p_stream->mux);
+ free(p_stream);
}
+ TAB_CLEAN(p_sys->i_nb_streams, p_sys->pp_streams);
free(p_sys);
}
More information about the vlc-commits
mailing list