From: Christophe Mutricy Date: Sat, 22 Nov 2008 16:23:11 +0000 (+0000) Subject: Fix memleak X-Git-Tag: 1.0.0-pre1~2063 X-Git-Url: http://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=88a9bbf30fcb8a5371440699d6cce7e12b7667fe;hp=f4407931afb32f6bb93c8217fa806ced3e847aa5 Fix memleak Untested Closes #2306 --- diff --git a/modules/codec/quicktime.c b/modules/codec/quicktime.c index a42ccce76f..508d1167ef 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;