Commit 5aeefb99 authored by Rémi Duraffort's avatar Rémi Duraffort

Unneed warnings.

parent ec8639f0
...@@ -161,10 +161,7 @@ bool Dialogs::init() ...@@ -161,10 +161,7 @@ bool Dialogs::init()
m_pProvider = (intf_thread_t *)vlc_object_create( getIntf(), m_pProvider = (intf_thread_t *)vlc_object_create( getIntf(),
sizeof( intf_thread_t ) ); sizeof( intf_thread_t ) );
if( m_pProvider == NULL ) if( m_pProvider == NULL )
{
msg_Err( getIntf(), "out of memory" );
return false; return false;
}
m_pModule = module_need( m_pProvider, "dialogs provider", NULL, 0 ); m_pModule = module_need( m_pProvider, "dialogs provider", NULL, 0 );
if( m_pModule == NULL ) if( m_pModule == NULL )
......
...@@ -87,11 +87,7 @@ bool FT2Font::init() ...@@ -87,11 +87,7 @@ bool FT2Font::init()
// Allocate the buffer // Allocate the buffer
m_buffer = malloc( size ); m_buffer = malloc( size );
if( !m_buffer ) if( !m_buffer )
{
msg_Err( getIntf(), "not enough memory for the font %s",
m_name.c_str() );
return false; return false;
}
// Read the font data // Read the font data
fread( m_buffer, size, 1, file ); fread( m_buffer, size, 1, file );
fclose( file ); fclose( file );
......
...@@ -88,10 +88,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -88,10 +88,7 @@ static int Open( vlc_object_t *p_this )
// Allocate instance and initialize some members // Allocate instance and initialize some members
p_intf->p_sys = (intf_sys_t *) malloc( sizeof( intf_sys_t ) ); p_intf->p_sys = (intf_sys_t *) malloc( sizeof( intf_sys_t ) );
if( p_intf->p_sys == NULL ) if( p_intf->p_sys == NULL )
{
msg_Err( p_intf, "out of memory" );
return( VLC_ENOMEM ); return( VLC_ENOMEM );
};
p_intf->pf_run = Run; p_intf->pf_run = Run;
......
...@@ -217,10 +217,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir ) ...@@ -217,10 +217,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir )
// Allocate the buffer // Allocate the buffer
void *pBuffer = malloc( ZIP_BUFFER_SIZE ); void *pBuffer = malloc( ZIP_BUFFER_SIZE );
if( !pBuffer ) if( !pBuffer )
{
msg_Err( getIntf(), "failed to allocate memory" );
return false; return false;
}
// Get the path of the file // Get the path of the file
OSFactory *pOsFactory = OSFactory::instance( getIntf() ); OSFactory *pOsFactory = OSFactory::instance( getIntf() );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment