Commit 77c9ae04 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

mux_m4: fix memory leak

parent 753d2bfb
...@@ -3034,10 +3034,13 @@ static void CloseFrag(vlc_object_t *p_this) ...@@ -3034,10 +3034,13 @@ static void CloseFrag(vlc_object_t *p_this)
if (mfra) if (mfra)
{ {
bo_t *mfro = box_full_new("mfro", 0, 0x0); bo_t *mfro = box_full_new("mfro", 0, 0x0);
if (mfro && mfra->b) if (mfro)
{ {
box_fix(mfra, mfra->b->i_buffer); if (mfra->b)
bo_add_32be(mfro, mfra->b->i_buffer + MP4_MFRO_BOXSIZE); {
box_fix(mfra, mfra->b->i_buffer);
bo_add_32be(mfro, mfra->b->i_buffer + MP4_MFRO_BOXSIZE);
}
box_gather(mfra, mfro); box_gather(mfra, mfro);
} }
box_send(p_mux, mfra); box_send(p_mux, mfra);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment