[vlc-devel] commit: Remove stupid test before a free. ( Rémi Duraffort )

git version control git at videolan.org
Fri Oct 10 22:07:25 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Oct 10 22:07:14 2008 +0200| [b78bee7a607cc3f20124390478cbefb37e9da910] | committer: Rémi Duraffort 

Remove stupid test before a free.

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

 modules/codec/avcodec/avcodec.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/avcodec.c b/modules/codec/avcodec/avcodec.c
index de1801d..a22e418 100644
--- a/modules/codec/avcodec/avcodec.c
+++ b/modules/codec/avcodec/avcodec.c
@@ -317,8 +317,7 @@ static void CloseDecoder( vlc_object_t *p_this )
     {
         vlc_mutex_t *lock;
 
-        if( p_sys->p_context->extradata )
-            free( p_sys->p_context->extradata );
+        free( p_sys->p_context->extradata );
         p_sys->p_context->extradata = NULL;
 
         vlc_mutex_lock( &avcodec_lock );




More information about the vlc-devel mailing list