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

git at videolan.org git at videolan.org
Wed Nov 3 15:01:22 CET 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Nov  3 15:00:45 2010 +0100| [7b794661c64e85716580e0c2e7750f6345ccbc50] | committer: Jean-Baptiste Kempf 

Revert "Stats: be extra careful when cleaning members"

This reverts commit 0861691f4ee562c21c3b08e2c093baad54b34ff0.

This should not be possible, probably the backtraces were corrupted.

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

 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 e524274..77e1235 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 && p_c->pp_samples )
+    if( p_c )
     {
         int i = p_c->i_samples - 1 ;
         while( i >= 0 )



More information about the vlc-commits mailing list