Commit 9a90c961 authored by Rafaël Carré's avatar Rafaël Carré

Fix memleak in mpga demuxer

parent 43f58feb
...@@ -273,9 +273,7 @@ static int Demux( demux_t *p_demux ) ...@@ -273,9 +273,7 @@ static int Demux( demux_t *p_demux )
{ {
p_sys->b_start = false; p_sys->b_start = false;
p_block_in = p_sys->p_block_in; p_block_in = p_sys->p_block_in;
p_sys->p_block_in = NULL;
p_block_out = p_sys->p_block_out; p_block_out = p_sys->p_block_out;
p_sys->p_block_out = NULL;
} }
else else
{ {
...@@ -327,6 +325,7 @@ static void Close( vlc_object_t * p_this ) ...@@ -327,6 +325,7 @@ static void Close( vlc_object_t * p_this )
DESTROY_PACKETIZER( p_sys->p_packetizer ); DESTROY_PACKETIZER( p_sys->p_packetizer );
if( p_sys->p_block_out ) block_Release( p_sys->p_block_out ); 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 ); 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