Commit a553f31a authored by Laurent Aimar's avatar Laurent Aimar

Fixed memory leak at each new PMT if we don't have CAM.

parent f2db0411
...@@ -1809,8 +1809,9 @@ int E_(CAMSet)( access_t * p_access, dvbpsi_pmt_t *p_pmt ) ...@@ -1809,8 +1809,9 @@ int E_(CAMSet)( access_t * p_access, dvbpsi_pmt_t *p_pmt )
{ {
access_sys_t *p_sys = p_access->p_sys; access_sys_t *p_sys = p_access->p_sys;
if ( p_sys->i_ca_handle == 0 ) if( p_sys->i_ca_handle == 0 )
{ {
dvbpsi_DeletePMT( p_pmt );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
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