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

git version control git at videolan.org
Sat Nov 22 19:12:44 CET 2008


vlc | branch: 0.9-bugfix | Christophe Mutricy <xtophe at videolan.org> | Sat Nov 22 16:23:11 2008 +0000| [f2edd8c2cded94ac8424520581a724d8c967b0b2] | committer: Christophe Mutricy 

Fix memleak

Untested
Closes #2306

(cherry picked from commit 88a9bbf30fcb8a5371440699d6cce7e12b7667fe)

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

 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 2776bc7..abea71a 100644
--- a/modules/codec/quicktime.c
+++ b/modules/codec/quicktime.c
@@ -669,11 +669,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
     vlc_mutex_t                        *lock;
     long                                i_result;
     ComponentDescription                desc;




More information about the vlc-devel mailing list