]> granicus.if.org Git - handbrake/commitdiff
Revert temporary code that silences valgrind warnings
authorjstebbins <jstebbins.hb@gmail.com>
Wed, 12 Sep 2012 15:56:47 +0000 (15:56 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Wed, 12 Sep 2012 15:56:47 +0000 (15:56 +0000)
memsets silence silly valgrind warnings, but we don't want
them in "production"

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4962 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/fifo.c

index 8fcde27b6edc5549161994c83b2590974e3b2eb7..1f0d2ef9733e2b9a5374dfabca9f1869409554c1 100644 (file)
@@ -334,7 +334,6 @@ hb_buffer_t * hb_buffer_init( int size )
         hb_lock(buffers.lock);
         buffers.allocated += b->alloc;
         hb_unlock(buffers.lock);
-        memset(b->data, 0, b->alloc);
     }
     return b;
 }
@@ -347,7 +346,6 @@ void hb_buffer_realloc( hb_buffer_t * b, int size )
         size = size_to_pool( size )->buffer_size;
         b->data  = realloc( b->data, size );
         b->alloc = size;
-        memset(b->data, 0, b->alloc);
 
         hb_lock(buffers.lock);
         buffers.allocated += size - orig;