]> git.sesse.net Git - vlc/commitdiff
minimal_macosx: return VLC_ENOMEM on malloc error
authorJean-Paul Saman <jpsaman@videolan.org>
Sun, 31 May 2009 14:39:10 +0000 (16:39 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 15 Jun 2009 12:47:27 +0000 (14:47 +0200)
(cherry picked from commit 100c91e7315651bd94d27e9fce4b62ab47e26127)

Signed-off-by: Derk-Jan Hartman <hartman@videolan.org>
modules/gui/minimal_macosx/intf.m

index 9ad3d08796d32e16932e8134276debd9bd4621c4..aa88eab9804ef81f146163fe8d68b70ecca56d9f 100644 (file)
@@ -58,7 +58,7 @@ int OpenIntf ( vlc_object_t *p_this )
     p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
     if( p_intf->p_sys == NULL )
     {
-        return( 1 );
+        return VLC_ENOMEM;
     }
 
     memset( p_intf->p_sys, 0, sizeof( *p_intf->p_sys ) );