Commit 0861691f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Stats: be extra careful when cleaning members

parent 616734f3
......@@ -398,7 +398,7 @@ void stats_TimersCleanAll( vlc_object_t *p_obj )
void stats_CounterClean( counter_t *p_c )
{
if( p_c )
if( p_c && p_c->pp_samples )
{
int i = p_c->i_samples - 1 ;
while( i >= 0 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment