Commit cb2e43a2 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

vobsub: Resource leak (CID 215)

parent 471fa3a8
......@@ -729,10 +729,10 @@ static int DemuxVobSub( demux_t *p_demux, block_t *p_bk )
p_bk->i_pts = 0; /*only first packet has a pts */
break;
}
else if( i == p_sys->i_tracks - 1 )
{
block_Release( p_pkt );
}
}
if( i >= p_sys->i_tracks )
{
block_Release( p_pkt );
}
}
......
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