Browse Source

Unneed warnings.

pull/2/head
Rémi Duraffort 18 years ago
parent
commit
5aeefb99ed
  1. 3
      modules/gui/skins2/src/dialogs.cpp
  2. 4
      modules/gui/skins2/src/ft2_font.cpp
  3. 3
      modules/gui/skins2/src/skin_main.cpp
  4. 3
      modules/gui/skins2/src/theme_loader.cpp

3
modules/gui/skins2/src/dialogs.cpp

@ -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 )

4
modules/gui/skins2/src/ft2_font.cpp

@ -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 );

3
modules/gui/skins2/src/skin_main.cpp

@ -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;

3
modules/gui/skins2/src/theme_loader.cpp

@ -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() );

Loading…
Cancel
Save