[vlc-commits] stream_filter: smooth: useless code cleanup

Francois Cartegnie git at videolan.org
Thu May 1 17:25:47 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May  1 17:15:03 2014 +0200| [ee26f5730aa6021856576fa62fc4b625e5c6b188] | committer: Francois Cartegnie

stream_filter: smooth: useless code cleanup

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

 modules/stream_filter/smooth/utils.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/stream_filter/smooth/utils.c b/modules/stream_filter/smooth/utils.c
index cfacc23..7189d1a 100644
--- a/modules/stream_filter/smooth/utils.c
+++ b/modules/stream_filter/smooth/utils.c
@@ -97,9 +97,8 @@ chunk_t *chunk_New( sms_stream_t* sms, uint64_t duration,\
 
 void chunk_Free( chunk_t *chunk )
 {
-    if( chunk->data )
-        FREENULL( chunk->data );
-    FREENULL( chunk );
+    free( chunk->data );
+    free( chunk );
 }
 
 sms_stream_t * sms_New( void )
@@ -175,10 +174,10 @@ void sms_queue_free( sms_queue_t* queue )
     while( item )
     {
         next = item->next;
-        FREENULL( item );
+        free( item );
         item = next;
     }
-    FREENULL( queue );
+    free( queue );
 }
 
 int sms_queue_put( sms_queue_t *queue, const uint64_t value )



More information about the vlc-commits mailing list