]> git.sesse.net Git - vlc/blobdiff - modules/video_output/ggi.c
Check malloc return value when needed and don't print an error when such error happend.
[vlc] / modules / video_output / ggi.c
index f7b682c1e7a194e2387e2f2bd2e2f0bf476a75eb..804e03a01a39ad5f617e40e3e5a865c04ae154d3 100644 (file)
@@ -104,10 +104,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 ) )