Changeset ae62adc7bf349fc963b53e3a99c5a0308bfb8627

Show
Ignore:
Timestamp:
02/10/07 04:50:10 (1 year ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1191293410 +0000
git-parent:

[98a6a9349091549d591be703aad7392b47b4e2a6]

git-author:
Rafaël Carré <funman@videolan.org> 1191293410 +0000
Message:

demux: fix a memory leak in flac & mpga when attachments are present

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/flac.c

    r98a6a93 rae62adc  
    207207 
    208208    TAB_CLEAN( p_sys->i_seekpoint, p_sys->seekpoint ); 
     209 
     210    int i; 
     211    for( i = 0; i < p_sys->i_attachments; i++ ) 
     212        free( p_sys->attachments[i] ); 
    209213    TAB_CLEAN( p_sys->i_attachments, p_sys->attachments); 
    210214 
  • modules/demux/mpeg/mpga.c

    r98a6a93 rae62adc  
    348348    if( p_sys->p_block_out ) block_Release( p_sys->p_block_out ); 
    349349 
     350    int i; 
     351    for( i = 0; i < p_sys->i_attachments; i++ ) 
     352        free( p_sys->attachments[i] ); 
    350353    TAB_CLEAN( p_sys->i_attachments, p_sys->attachments); 
    351354