]> git.sesse.net Git - vlc/commitdiff
Fix
authorClément Stenac <zorglub@videolan.org>
Sun, 15 Jan 2006 22:21:21 +0000 (22:21 +0000)
committerClément Stenac <zorglub@videolan.org>
Sun, 15 Jan 2006 22:21:21 +0000 (22:21 +0000)
src/misc/stats.c

index 13951b1b7e900fba0d2d2b46cdac99a134e9c120..dcee50ed520812eef487eec695b67e2bf77c391c 100644 (file)
@@ -55,18 +55,16 @@ void stats_HandlerDestroy( stats_handler_t *p_stats )
     for ( i =  p_stats->i_counters - 1 ; i >= 0 ; i-- )
     {
         int j;
-        counter * p_counter = p_stats->pp_counters[i];
+        counter_t * p_counter = p_stats->pp_counters[i];
 
         for( j = p_counter->i_samples -1; j >= 0 ; j-- )
         {
             counter_sample_t *p_sample = p_counter->pp_samples[j];
-            if( p_sample->val.psz_string )
-                free( p_sample->val.psz_string );
             REMOVE_ELEM( p_counter->pp_samples, p_counter->i_samples, j );
             free( p_sample );
         }
         free( p_counter->psz_name );
-        REMOVE_ELEM( p_stats->pp_counters, p_stats->i_counter, i );
+        REMOVE_ELEM( p_stats->pp_counters, p_stats->i_counters, i );
         free( p_counter );
     }
 }