]> git.sesse.net Git - vlc/blobdiff - modules/video_output/vmem.c
macosx: Remove some #define abuses and assert() when casting a type.
[vlc] / modules / video_output / vmem.c
index f699bf81452b2aed18128b6832a78a1004c6910f..5de7f09af0a5966bd513bf8bba27db8899fb77b5 100644 (file)
@@ -29,7 +29,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_vout.h>
 
@@ -145,6 +145,7 @@ static int Init( vout_thread_t *p_vout )
         if( strlen( psz_chroma ) < 4 )
         {
             msg_Err( p_vout, "vmem-chroma should be 4 characters long" );
+            free( psz_chroma );
             return VLC_EGENERIC;
         }
         i_chroma = VLC_FOURCC( psz_chroma[0], psz_chroma[1],