[vlc-devel] commit: Fix memleak (Christophe Mutricy )

git version control git at videolan.org
Sat Nov 22 18:03:45 CET 2008


vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Sat Nov 22 16:23:11 2008 +0000| [88a9bbf30fcb8a5371440699d6cce7e12b7667fe] | committer: Christophe Mutricy 

Fix memleak

Untested
Closes #2306

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

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

diff --git a/modules/codec/quicktime.c b/modules/codec/quicktime.c
index a42ccce..508d116 100644
--- a/modules/codec/quicktime.c
+++ b/modules/codec/quicktime.c
@@ -673,11 +673,11 @@ static aout_buffer_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block )
  *****************************************************************************/
 static int OpenVideo( decoder_t *p_dec )
 {
+#ifndef WIN32
     decoder_sys_t *p_sys = malloc( sizeof( decoder_sys_t ) );
     if( !p_sys )
         return VLC_ENOMEM;
 
-#ifndef WIN32
     long                                i_result;
     ComponentDescription                desc;
     Component                           prev;




More information about the vlc-devel mailing list