X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_epg.h;h=9017089f87ef9dc070e3c315a67661cc2d0266c5;hb=ac5fe543116a304c652f0ae7eea38cfbb40c119d;hp=62732f9ec9d8e3910f681390fbc43cd6f5a5127b;hpb=61abfdafa8566dc5ede8d172a9d495f0cec5a449;p=vlc diff --git a/include/vlc_epg.h b/include/vlc_epg.h index 62732f9ec9..9017089f87 100644 --- a/include/vlc_epg.h +++ b/include/vlc_epg.h @@ -60,17 +60,13 @@ static inline void vlc_epg_Clean( vlc_epg_t *p_epg ) for( i = 0; i < p_epg->i_event; i++ ) { vlc_epg_event_t *p_evt = p_epg->pp_event[i]; - if( p_evt->psz_name ) - free( p_evt->psz_name ); - if( p_evt->psz_short_description ) - free( p_evt->psz_short_description ); - if( p_evt->psz_description ) - free( p_evt->psz_description ); + free( p_evt->psz_name ); + free( p_evt->psz_short_description ); + free( p_evt->psz_description ); free( p_evt ); } TAB_CLEAN( p_epg->i_event, p_epg->pp_event ); - if( p_epg->psz_name ) - free( p_epg->psz_name ); + free( p_epg->psz_name ); } static inline void vlc_epg_AddEvent( vlc_epg_t *p_epg, int64_t i_start, int i_duration, const char *psz_name, const char *psz_short_description, const char *psz_description )