]> git.sesse.net Git - vlc/commitdiff
check for malloc return value
authorJean-Paul Saman <jpsaman@videolan.org>
Fri, 29 Feb 2008 14:35:40 +0000 (14:35 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 29 Feb 2008 14:35:40 +0000 (14:35 +0000)
modules/stream_out/mosaic_bridge.c

index c025744b5328573071e11b26942d7bf95d65ecbb..15ca34dfb0ed3270223c626962f4fcb3d21d23d0 100644 (file)
@@ -784,6 +784,7 @@ static picture_t *video_new_buffer( vlc_object_t *p_this,
     }
 
     p_pic = malloc( sizeof(picture_t) );
+    if( !p_pic ) return NULL;
     fmt_out->video.i_chroma = fmt_out->i_codec;
     vout_AllocatePicture( p_this, p_pic,
                           fmt_out->video.i_chroma,