Commit 175303c4 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* backport [18942]

Fixed memory leak at each new PMT if we don't have CAM.
parent b91325fe
...@@ -1810,8 +1810,9 @@ int E_(CAMSet)( access_t * p_access, dvbpsi_pmt_t *p_pmt ) ...@@ -1810,8 +1810,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