]> git.sesse.net Git - vlc/commitdiff
Fix memleak
authorChristophe Mutricy <xtophe@videolan.org>
Sat, 22 Nov 2008 16:23:11 +0000 (16:23 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sat, 22 Nov 2008 16:23:11 +0000 (16:23 +0000)
Untested
Closes #2306

modules/codec/quicktime.c

index a42ccce76f17250a792f05010e6f4dc39c785b65..508d1167ef343740cc18d04a499853ee1b4cece9 100644 (file)
@@ -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;