Commit 9cef5b98 authored by François Cartegnie's avatar François Cartegnie 🤞

mux: mp4: fix leaks

parent 272e0c47
......@@ -357,8 +357,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);
}
......@@ -1362,7 +1361,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);
}
......
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