Changeset fcba019ffbf34d00dfeb7aa417519e1208e97467

Show
Ignore:
Timestamp:
11/07/06 16:45:27 (2 years ago)
Author:
Derk-Jan Hartman <hartman@videolan.org>
git-committer:
Derk-Jan Hartman <hartman@videolan.org> 1162914327 +0000
git-parent:

[5d9f43a33847aad10334a7e5753bf4d8467f3edf]

git-author:
Derk-Jan Hartman <hartman@videolan.org> 1162914327 +0000
Message:

* memleak if normvol filter cannot be used.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/audio_filter/normvol.c

    rdc8b128 rfcba019  
    101101    vlc_bool_t b_fit = VLC_TRUE; 
    102102    int i_channels; 
    103     aout_filter_sys_t *p_sys = p_filter->p_sys = 
    104         malloc( sizeof( aout_filter_sys_t ) ); 
     103    aout_filter_sys_t *p_sys; 
    105104 
    106105    if( p_filter->input.i_format != VLC_FOURCC('f','l','3','2' ) || 
     
    131130    i_channels = aout_FormatNbChannels( &p_filter->input ); 
    132131 
     132    p_sys = p_filter->p_sys = malloc( sizeof( aout_filter_sys_t ) ); 
    133133    p_sys->i_nb = var_CreateGetInteger( p_filter->p_parent, "norm-buff-size" ); 
    134134    p_sys->f_max = var_CreateGetFloat( p_filter->p_parent, "norm-max-level" );