Commit 5aeefb99 authored by ivoire's avatar ivoire
Browse files

Unneed warnings.

parent ec8639f0
......@@ -161,10 +161,7 @@ bool Dialogs::init()
m_pProvider = (intf_thread_t *)vlc_object_create( getIntf(),
sizeof( intf_thread_t ) );
if( m_pProvider == NULL )
{
msg_Err( getIntf(), "out of memory" );
return false;
}
m_pModule = module_need( m_pProvider, "dialogs provider", NULL, 0 );
if( m_pModule == NULL )
......
......@@ -87,11 +87,7 @@ bool FT2Font::init()
// Allocate the buffer
m_buffer = malloc( size );
if( !m_buffer )
{
msg_Err( getIntf(), "not enough memory for the font %s",
m_name.c_str() );
return false;
}
// Read the font data
fread( m_buffer, size, 1, file );
fclose( file );
......
......@@ -88,10 +88,7 @@ static int Open( vlc_object_t *p_this )
// Allocate instance and initialize some members
p_intf->p_sys = (intf_sys_t *) malloc( sizeof( intf_sys_t ) );
if( p_intf->p_sys == NULL )
{
msg_Err( p_intf, "out of memory" );
return( VLC_ENOMEM );
};
p_intf->pf_run = Run;
......
......@@ -217,10 +217,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir )
// Allocate the buffer
void *pBuffer = malloc( ZIP_BUFFER_SIZE );
if( !pBuffer )
{
msg_Err( getIntf(), "failed to allocate memory" );
return false;
}
// Get the path of the file
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