[vlc-devel] commit: Unneed warnings. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Oct 17 19:02:45 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Oct 15 21:11:47 2008 +0200| [5aeefb99edd9358407ed99a32f24e2e98fc80e61] | committer: Rémi Duraffort
Unneed warnings.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5aeefb99edd9358407ed99a32f24e2e98fc80e61
---
modules/gui/skins2/src/dialogs.cpp | 3 ---
modules/gui/skins2/src/ft2_font.cpp | 4 ----
modules/gui/skins2/src/skin_main.cpp | 3 ---
modules/gui/skins2/src/theme_loader.cpp | 3 ---
4 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/modules/gui/skins2/src/dialogs.cpp b/modules/gui/skins2/src/dialogs.cpp
index fa165f9..f8df188 100644
--- a/modules/gui/skins2/src/dialogs.cpp
+++ b/modules/gui/skins2/src/dialogs.cpp
@@ -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 )
diff --git a/modules/gui/skins2/src/ft2_font.cpp b/modules/gui/skins2/src/ft2_font.cpp
index ab6c734..b0ade15 100644
--- a/modules/gui/skins2/src/ft2_font.cpp
+++ b/modules/gui/skins2/src/ft2_font.cpp
@@ -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 );
diff --git a/modules/gui/skins2/src/skin_main.cpp b/modules/gui/skins2/src/skin_main.cpp
index 6cae2ea..e2857a3 100644
--- a/modules/gui/skins2/src/skin_main.cpp
+++ b/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
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;
diff --git a/modules/gui/skins2/src/theme_loader.cpp b/modules/gui/skins2/src/theme_loader.cpp
index 03fa157..c547fda 100644
--- a/modules/gui/skins2/src/theme_loader.cpp
+++ b/modules/gui/skins2/src/theme_loader.cpp
@@ -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() );
More information about the vlc-devel
mailing list