]> git.sesse.net Git - vlc/blobdiff - modules/video_output/glide.c
Check malloc return value when needed and don't print an error when such error happend.
[vlc] / modules / video_output / glide.c
index d70479e8096fc80c68217f0d8578fc86b70e6c02..2c8c425f30f9735ed8e10803248939ffd3618e5d 100644 (file)
@@ -96,10 +96,7 @@ static int Create( vlc_object_t *p_this )
     /* Allocate structure */
     p_vout->p_sys = malloc( sizeof( vout_sys_t ) );
     if( p_vout->p_sys == NULL )
-    {
-        msg_Err( p_vout, "out of memory" );
         return( 1 );
-    }
 
     /* Open and initialize device */
     if( OpenDisplay( p_vout ) )