]> git.sesse.net Git - vlc/commitdiff
Fixed memory leak at each new PMT if we don't have CAM.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 21 Feb 2007 23:01:36 +0000 (23:01 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 21 Feb 2007 23:01:36 +0000 (23:01 +0000)
modules/access/dvb/linux_dvb.c

index 81fc0cebc8f0b4739464ec69113d6aaef3f71d0f..6bda75f66ba03939ef79a38af8f26fe0e2229573 100644 (file)
@@ -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;
 
-    if ( p_sys->i_ca_handle == 0 )
+    if( p_sys->i_ca_handle == 0 )
     {
+        dvbpsi_DeletePMT( p_pmt );
         return VLC_EGENERIC;
     }