[vlc-commits] [Git][videolan/vlc][master] epg: use vlc_alloc

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Apr 10 04:00:33 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
71b2769f by François Cartegnie at 2026-04-10T03:42:40+00:00
epg: use vlc_alloc

- - - - -


1 changed file:

- src/misc/epg.c


Changes:

=====================================
src/misc/epg.c
=====================================
@@ -86,8 +86,8 @@ vlc_epg_event_t * vlc_epg_event_Duplicate( const vlc_epg_event_t *p_src )
             p_evt->psz_short_description = strdup( p_src->psz_short_description );
         if( p_src->i_description_items )
         {
-            p_evt->description_items = malloc( sizeof(*p_evt->description_items) *
-                                               p_src->i_description_items );
+            p_evt->description_items = vlc_alloc( p_src->i_description_items,
+                                                  sizeof(*p_evt->description_items ) );
             if( p_evt->description_items )
             {
                 for( int i=0; i<p_src->i_description_items; i++ )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/71b2769f1071eb00891472de015b2e1a8d7ec6cd

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/71b2769f1071eb00891472de015b2e1a8d7ec6cd
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list