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

vobsub: Resource leak (CID 215)

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