Commit 587910d6 authored by Rafaël Carré's avatar Rafaël Carré

Revert "Fix memleak in mpga demuxer"

This reverts commit 9a90c961.
This introduces double free
I tend to prefer a memleak as a race condition rather than a crash
parent e0321a00
......@@ -273,7 +273,9 @@ static int Demux( demux_t *p_demux )
{
p_sys->b_start = false;
p_block_in = p_sys->p_block_in;
p_sys->p_block_in = NULL;
p_block_out = p_sys->p_block_out;
p_sys->p_block_out = NULL;
}
else
{
......@@ -325,7 +327,6 @@ static void Close( vlc_object_t * p_this )
DESTROY_PACKETIZER( p_sys->p_packetizer );
if( p_sys->p_block_out ) block_Release( p_sys->p_block_out );
if( p_sys->p_block_in ) block_Release( p_sys->p_block_in );
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