Changeset e444bfd2adc3ab5405a7cd2cb05adde8f4b8d8c8

Show
Ignore:
Timestamp:
12/06/06 22:41:22 (2 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1150144882 +0000
git-parent:

[fab2e7bcdbf32b56a8561f55db9b276eebf2f1c4]

git-author:
Gildas Bazin <gbazin@videolan.org> 1150144882 +0000
Message:

* src/misc/stats.c: don't forget to call vlc_object_release() after a stats_HandlerGet().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/stats.c

    r0458674 re444bfd  
    112112 
    113113    vlc_mutex_unlock( &p_handler->object_lock ); 
     114    vlc_object_release( p_handler ); 
    114115 
    115116    return VLC_SUCCESS; 
     
    147148    i_ret = stats_CounterUpdate( p_handler, p_counter, val, val_new ); 
    148149    vlc_mutex_unlock( &p_handler->object_lock ); 
     150    vlc_object_release( p_handler ); 
    149151 
    150152    return i_ret; 
     
    185187    { 
    186188        vlc_mutex_unlock( &p_handler->object_lock ); 
     189        vlc_object_release( p_handler ); 
    187190        val->i_int = val->f_float = 0.0; 
    188191        return VLC_EGENERIC; 
     
    202205        { 
    203206            vlc_mutex_unlock( &p_handler->object_lock ); 
     207            vlc_object_release( p_handler ); 
    204208            val->i_int = 0; val->f_float = 0.0; 
    205209            return VLC_EGENERIC; 
     
    475479    } 
    476480    vlc_mutex_unlock( &p_handler->object_lock ); 
     481    vlc_object_release( p_handler ); 
    477482} 
    478483