]> git.sesse.net Git - vlc/commitdiff
Gah, forgot to commit this: fix a potential crash in stats
authorClément Stenac <zorglub@videolan.org>
Fri, 11 Aug 2006 06:23:56 +0000 (06:23 +0000)
committerClément Stenac <zorglub@videolan.org>
Fri, 11 Aug 2006 06:23:56 +0000 (06:23 +0000)
src/input/input.c

index 138ea45a7cffb0d87cc35c7a01a37371bceb4007..af45eda0b329bce3246abfc0ad6a813283ff4cee 100644 (file)
@@ -1119,7 +1119,7 @@ static void End( input_thread_t * p_input )
     if( p_input->p_es_out )
         input_EsOutDelete( p_input->p_es_out );
 
-#define CL_CO( c ) stats_CounterClean( p_input->counters.p_##c )
+#define CL_CO( c ) stats_CounterClean( p_input->counters.p_##c ); p_input->counters.p_##c = NULL;
     if( p_input->p_libvlc->b_stats )
     {
         vlc_mutex_lock( &p_input->counters.counters_lock );