[vlc-commits] commit: Stats: be extra careful when cleaning members (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Wed Nov 3 14:41:16 CET 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Nov  3 14:09:30 2010 +0100| [0861691f4ee562c21c3b08e2c093baad54b34ff0] | committer: Jean-Baptiste Kempf 

Stats: be extra careful when cleaning members

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0861691f4ee562c21c3b08e2c093baad54b34ff0
---

 src/misc/stats.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/stats.c b/src/misc/stats.c
index 77e1235..e524274 100644
--- a/src/misc/stats.c
+++ b/src/misc/stats.c
@@ -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 )



More information about the vlc-commits mailing list