psz_name = var_CreateGetString( p_this, "cd-audio" );
if( !psz_name || !*psz_name )
{
- if( psz_name ) free( psz_name );
+ free( psz_name );
return VLC_EGENERIC;
}
}
{
if( cddb_track_get_title( t ) != NULL )
{
- if( p_input_item->psz_name )
- free( p_input_item->psz_name );
+ free( p_input_item->psz_name );
p_input_item->psz_name = strdup( cddb_track_get_title( t ) );
input_item_SetTitle( p_input_item, cddb_track_get_title( t ) );
}
msg_Err( p_access, "%s%s\n", psz_mes ? psz_mes: "",
psz_err ? psz_err: "" );
- if( psz_err ) free( psz_err );
- if( psz_mes ) free( psz_mes );
+ free( psz_err );
+ free( psz_mes );
if( !p_readbuf )
{
msg_Err( p_access, "paranoia read error on frame %i\n",
{
char *psz_title = CDDAFormatTitle( p_access, p_cdda->i_track );
input_Control( p_cdda->p_input, INPUT_SET_NAME, psz_title );
- free(psz_title);
+ free( psz_title );
}
else
{
if( !(p_cdio = cdio_open( psz_source, DRIVER_UNKNOWN )) )
{
msg_Warn( p_access, "could not open %s", psz_source );
- if ( psz_source )
- free( psz_source );
+ free( psz_source );
return VLC_EGENERIC;
}
error:
cdio_destroy( p_cdda->p_cdio );
- if( psz_source) free( psz_source );
+ free( psz_source );
if( p_cdda )
{
if ( p_cdda->p_input )
cdio_cddap_close_no_free_cdio( p_cdda->paranoia_cd );
#endif
- if( p_cdda->psz_mcn ) free( p_cdda->psz_mcn );
- if( p_cdda->psz_source ) free( p_cdda->psz_source );
+ free( p_cdda->psz_mcn );
+ free( p_cdda->psz_source );
#if LIBCDDB_VERSION_NUM >= 1
libcddb_shutdown();
char *psz_title = CDDAFormatTitle( p_access, i_track );
input_Control( p_cdda->p_input, INPUT_SET_NAME,
psz_title );
- free(psz_title);
+ free( psz_title );
p_cdda->i_track = i_track;
i_last_lsn = cdio_get_track_lsn( p_cdda->p_cdio,
CDIO_CDROM_LEADOUT_TRACK );
dc1394_destroy_handle( p_sys->fd_video );
CloseAudioDev( p_demux );
- if( p_sys->camera_nodes )
- free( p_sys->camera_nodes );
- if( p_sys->audio_device )
- free( p_sys->audio_device );
+ free( p_sys->camera_nodes );
+ free( p_sys->audio_device );
free( p_sys );
}
"video size of 160x120 is actually disabled for lack of chroma "
"support. It will relased ASAP, until then try an higher size "
"(320x240 and 640x480 are fully supported)" );
- free(psz_dup);
+ free( psz_dup );
return VLC_EGENERIC;
#if 0
p_sys->frame_size = MODE_160x120_YUV444;
" 160x120, 320x240, and 640x480. "
"Please specify one of them. You have specified %s.",
token );
- free(psz_dup);
+ free( psz_dup );
return VLC_EGENERIC;
}
msg_Dbg( p_demux, "Requested video size : %s",token );
" 1.875, 3.75, 7.5, 15, 30, 60. "
"Please specify one of them. You have specified %s.",
token);
- free(psz_dup);
+ free( psz_dup );
return VLC_EGENERIC;
}
msg_Dbg( p_demux, "Requested frame rate : %s",token );
msg_Err( p_demux, "Bad brightness value '%s', "
"must be an unsigned integer.",
token );
- free(psz_dup);
+ free( psz_dup );
return VLC_EGENERIC;
}
}
msg_Err( p_demux, "Bad camera number '%s', "
"must be an unsigned integer.",
token );
- free(psz_dup);
+ free( psz_dup );
return VLC_EGENERIC;
}
}
msg_Err(p_demux, "Bad capture method value '%s', "
"it can be 'raw1394' or 'video1394'.",
token );
- free(psz_dup);
+ free( psz_dup );
return VLC_EGENERIC;
}
}
sscanf( token, "0x%llx", &p_sys->selected_uid );
}
}
- if( psz_dup ) free( psz_dup );
+ free( psz_dup );
return VLC_SUCCESS;
}
playlist_Signal( p_playlist );
- if( psz_name ) free( psz_name );
+ free( psz_name );
vlc_object_release( p_input );
vlc_object_release( p_playlist );
psz_parser = ptr + 1;
}
}
- if( psz_ignore ) free( psz_ignore );
+ free( psz_ignore );
/* While we still have entries in the directory */
for( i = 0; i < i_dir_content; i++ )
}
for( i = 0; i < i_extensions; i++ )
- if( ppsz_extensions[i] ) free( ppsz_extensions[i] );
- if( ppsz_extensions ) free( ppsz_extensions );
+ free( ppsz_extensions[i] );
+ free( ppsz_extensions );
for( i = 0; i < i_dir_content; i++ )
- if( pp_dir_content[i] ) free( pp_dir_content[i] );
- if( pp_dir_content ) free( pp_dir_content );
+ free( pp_dir_content[i] );
+ free( pp_dir_content );
return i_return;
}
var_Create( p_this, "dshow-vdev", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
var_Get( p_this, "dshow-vdev", &val );
if( val.psz_string ) vdevname = string( val.psz_string );
- if( val.psz_string ) free( val.psz_string );
+ free( val.psz_string );
var_Create( p_this, "dshow-adev", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
var_Get( p_this, "dshow-adev", &val );
if( val.psz_string ) adevname = string( val.psz_string );
- if( val.psz_string ) free( val.psz_string );
+ free( val.psz_string );
static struct {char *psz_size; int i_width; int i_height;} size_table[] =
{ { "subqcif", 128, 96 }, { "qsif", 160, 120 }, { "qcif", 176, 144 },
msg_Dbg( p_this, "width x height %dx%d", i_width, i_height );
}
}
- if( val.psz_string ) free( val.psz_string );
+ free( val.psz_string );
p_sys->b_chroma = VLC_FALSE;
var_Create( p_this, "dshow-chroma", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
val.psz_string[2], val.psz_string[3] );
p_sys->b_chroma = VLC_TRUE;
}
- if( val.psz_string ) free( val.psz_string );
+ free( val.psz_string );
var_Create( p_this, "dshow-fps", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT );
var_Create( p_this, "dshow-tuner-channel",
putenv( psz_env );
}
- if( psz_dvdcss_env ) free( psz_dvdcss_env );
+ free( psz_dvdcss_env );
/* Open dvdread */
if( !(p_dvdread = DVDOpen( psz_name )) )
if( psz_line == NULL || strlen( psz_line ) < 3 )
{
msg_Err( p_access, "cannot get answer" );
- if( psz_line ) free( psz_line );
+ free( psz_line );
if( pi_answer ) *pi_answer = 500;
if( ppsz_answer ) *ppsz_answer = NULL;
return -1;
psz_login, psz_password );
if( psz_login ) p_sys->url.psz_username = strdup( psz_login );
if( psz_password ) p_sys->url.psz_password = strdup( psz_password );
- if( psz_login ) free( psz_login );
- if( psz_password ) free( psz_password );
+ free( psz_login );
+ free( psz_password );
goto connect;
}
else
{
- if( psz_login ) free( psz_login );
- if( psz_password ) free( psz_password );
+ free( psz_login );
+ free( psz_password );
goto error;
}
}
{
/* read the empty line */
char *psz = net_Gets( VLC_OBJECT(p_access), p_sys->fd, p_sys->p_vs );
- if( psz ) free( psz );
+ free( psz );
}
}
}
if( !p_sys->psz_icy_title ||
strcmp( p_sys->psz_icy_title, &p[1] ) )
{
- if( p_sys->psz_icy_title )
- free( p_sys->psz_icy_title );
+ free( p_sys->psz_icy_title );
p_sys->psz_icy_title = strdup( &p[1] );
p_access->info.i_update |= INPUT_UPDATE_META;
psz_new_loc = strdup( p );
}
- if( p_sys->psz_location ) free( p_sys->psz_location );
+ free( p_sys->psz_location );
p_sys->psz_location = psz_new_loc;
}
else if( !strcasecmp( psz, "Content-Type" ) )
{
- if( p_sys->psz_mime ) free( p_sys->psz_mime );
+ free( p_sys->psz_mime );
p_sys->psz_mime = strdup( p );
msg_Dbg( p_access, "Content-Type: %s", p_sys->psz_mime );
}
{
if( !strcasecmp( psz, "Pragma: features" ) )
p_sys->b_mms = VLC_TRUE;
- if( p_sys->psz_pragma ) free( p_sys->psz_pragma );
+ free( p_sys->psz_pragma );
p_sys->psz_pragma = strdup( p );
msg_Dbg( p_access, "Pragma: %s", p_sys->psz_pragma );
}
}
else if( !strcasecmp( psz, "Icy-Name" ) )
{
- if( p_sys->psz_icy_name ) free( p_sys->psz_icy_name );
+ free( p_sys->psz_icy_name );
p_sys->psz_icy_name = strdup( p );
msg_Dbg( p_access, "Icy-Name: %s", p_sys->psz_icy_name );
}
else if( !strcasecmp( psz, "Icy-Genre" ) )
{
- if( p_sys->psz_icy_genre ) free( p_sys->psz_icy_genre );
+ free( p_sys->psz_icy_genre );
p_sys->psz_icy_genre = strdup( p );
msg_Dbg( p_access, "Icy-Genre: %s", p_sys->psz_icy_genre );
}
{
msg_Err( p_demux, "failed to register a JACK port" );
if( p_sys->p_jack_client) jack_client_close( p_sys->p_jack_client );
- if( p_sys->pp_jack_port_input ) free( p_sys->pp_jack_port_input );
+ free( p_sys->pp_jack_port_input );
if( p_sys->p_jack_ringbuffer ) jack_ringbuffer_free( p_sys->p_jack_ringbuffer );
- if( p_sys->pp_jack_buffer ) free( p_sys->pp_jack_buffer );
+ free( p_sys->pp_jack_buffer );
free( p_sys );
return VLC_EGENERIC;
}
{
msg_Err( p_demux, "failed to activate JACK client" );
if( p_sys->p_jack_client) jack_client_close( p_sys->p_jack_client );
- if( p_sys->pp_jack_port_input ) free( p_sys->pp_jack_port_input );
+ free( p_sys->pp_jack_port_input );
if( p_sys->p_jack_ringbuffer ) jack_ringbuffer_free( p_sys->p_jack_ringbuffer );
- if( p_sys->pp_jack_buffer ) free( p_sys->pp_jack_buffer );
+ free( p_sys->pp_jack_buffer );
free( p_sys );
return VLC_EGENERIC;
}
jack_port_name( p_sys->pp_jack_port_input[i_input_ports] ) );
}
}
- if( pp_jack_port_output ) free( pp_jack_port_output );
+ free( pp_jack_port_output );
}
/* info about jack server */
if( p_sys->p_block_audio ) block_Release( p_sys->p_block_audio );
if( p_sys->p_jack_client ) jack_client_close( p_sys->p_jack_client );
if( p_sys->p_jack_ringbuffer ) jack_ringbuffer_free( p_sys->p_jack_ringbuffer );
- if( p_sys->pp_jack_port_input ) free( p_sys->pp_jack_port_input );
- if( p_sys->pp_jack_buffer ) free( p_sys->pp_jack_buffer );
- if( p_sys->pp_jack_port_table ) free( p_sys->pp_jack_port_table );
+ free( p_sys->pp_jack_port_input );
+ free( p_sys->pp_jack_buffer );
+ free( p_sys->pp_jack_port_table );
free( p_sys );
}
}
}
- if( pp_jack_port_output ) free( pp_jack_port_output );
+ free( pp_jack_port_output );
p_sys->i_match_ports = i_total_out_ports;
}
if( psz ) strncpy( (char *)p_buffer, psz, i_buffer );
else *p_buffer = 0;
- if( psz ) free( psz );
+ free( psz );
return 0;
}
var_Create( p_access, "realrtsp-caching",
VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
- if( psz_server ) free( psz_server );
+ free( psz_server );
return VLC_SUCCESS;
error:
- if( psz_server ) free( psz_server );
+ free( psz_server );
Close( p_this );
return VLC_EGENERIC;
}
access_sys_t *p_sys = p_access->p_sys;
if( p_sys->p_rtsp ) rtsp_close( p_sys->p_rtsp );
- if( p_sys->p_rtsp ) free( p_sys->p_rtsp );
+ free( p_sys->p_rtsp );
free( p_sys );
}
if (!desc->stream[i]->mlti_data) {
len = 0;
- if( buf ) free( buf );
+ free( buf );
buf = NULL;
} else
len=select_mlti_data(desc->stream[i]->mlti_data,
rmff_fix_header(header);
if( desc ) sdpplin_free( desc );
- if( buf ) free(buf);
+ free( buf );
return header;
error:
if( desc ) sdpplin_free( desc );
if( header ) rmff_free_header( header );
- if( buf ) free( buf );
+ free( buf );
return NULL;
}
lprintf("real: got message from server:\n%s\n", alert);
}
printf( "bou\n");
- rtsp_send_ok(rtsp_session);
- if( challenge1 ) free(challenge1);
- if( alert ) free(alert);
- if( buf ) free(buf);
+ rtsp_send_ok( rtsp_session );
+ free( challenge1 );
+ free( alert );
+ free( buf );
return NULL;
}
rtsp_schedule_field(rtsp_session, "Range: npt=0-");
rtsp_request_play(rtsp_session,NULL);
- if( challenge1 ) free( challenge1 );
- if( session_id ) free( session_id );
- if( description ) free(description);
- if( subscribe ) free(subscribe);
- if( buf ) free(buf);
+ free( challenge1 );
+ free( session_id );
+ free( description );
+ free( subscribe );
+ free( buf );
return h;
error:
if( h ) rmff_free_header( h );
- if( challenge1 ) free( challenge1 );
- if( session_id ) free( session_id );
- if( description ) free(description);
- if( subscribe ) free(subscribe);
- if( buf ) free(buf);
+ free( challenge1 );
+ free( session_id );
+ free( description );
+ free( subscribe );
+ free( buf );
return NULL;
}
mdpr->type_specific_data = malloc(sizeof(char)*type_specific_len);
if( !mdpr->type_specific_data ) {
- if( mdpr->stream_name ) free( mdpr->stream_name );
+ free( mdpr->stream_name );
free( mdpr );
return NULL;
}
{
if (!h) return;
- if (h->fileheader) free(h->fileheader);
- if (h->prop) free(h->prop);
- if (h->data) free(h->data);
- if (h->cont) {
- free(h->cont->title);
- free(h->cont->author);
- free(h->cont->copyright);
- free(h->cont->comment);
- free(h->cont);
+ free( h->fileheader );
+ free( h->prop );
+ free( h->data );
+ if( h->cont ) {
+ free( h->cont->title );
+ free( h->cont->author );
+ free( h->cont->copyright );
+ free( h->cont->comment );
+ free( h->cont );
}
if (h->streams) {
rmff_mdpr_t **s=h->streams;
*data=nl(*data);
}
}
- if( buf ) free(buf);
- if( decoded )free(decoded);
+ free( buf );
+ free( decoded) ;
return desc;
error:
- if( decoded ) free(decoded);
- if( desc ) free( desc );
- if( buf ) free( buf );
+ free( decoded );
+ free( desc );
+ free( buf );
return NULL;
}
}
}
- free(decoded);
- free(buf);
+ free( decoded );
+ free( buf );
return desc;
}
for( i=0; i<description->stream_count; i++ ) {
if( description->stream[i] ) {
- if( description->stream[i]->id ) free( description->stream[i]->id );
- if( description->stream[i]->bandwidth ) free( description->stream[i]->bandwidth );
- if( description->stream[i]->range ) free( description->stream[i]->range );
- if( description->stream[i]->length ) free( description->stream[i]->length );
- if( description->stream[i]->rtpmap ) free( description->stream[i]->rtpmap );
- if( description->stream[i]->mimetype ) free( description->stream[i]->mimetype );
- if( description->stream[i]->stream_name ) free( description->stream[i]->stream_name );
- if( description->stream[i]->mime_type ) free( description->stream[i]->mime_type );
- if( description->stream[i]->mlti_data ) free( description->stream[i]->mlti_data );
- if( description->stream[i]->rmff_flags ) free( description->stream[i]->rmff_flags );
- if( description->stream[i]->asm_rule_book ) free( description->stream[i]->asm_rule_book );
+ free( description->stream[i]->id );
+ free( description->stream[i]->bandwidth );
+ free( description->stream[i]->range );
+ free( description->stream[i]->length );
+ free( description->stream[i]->rtpmap );
+ free( description->stream[i]->mimetype );
+ free( description->stream[i]->stream_name );
+ free( description->stream[i]->mime_type );
+ free( description->stream[i]->mlti_data );
+ free( description->stream[i]->rmff_flags );
+ free( description->stream[i]->asm_rule_book );
free( description->stream[i] );
}
}
if( description->stream_count ) free( description->stream );
- if( description->owner ) free( description->owner );
- if( description->session_name ) free( description->session_name );
- if( description->session_info ) free( description->session_info );
- if( description->uri ) free( description->uri );
- if( description->email ) free( description->email );
- if( description->phone ) free( description->phone );
- if( description->connection ) free( description->connection );
- if( description->bandwidth ) free( description->bandwidth );
- if( description->title ) free( description->title );
- if( description->author ) free( description->author );
- if( description->copyright ) free( description->copyright );
- if( description->keywords ) free( description->keywords );
- if( description->asm_rule_book ) free( description->asm_rule_book );
- if( description->abstract ) free( description->abstract );
- if( description->range ) free( description->range );
+ free( description->owner );
+ free( description->session_name );
+ free( description->session_info );
+ free( description->uri );
+ free( description->email );
+ free( description->phone );
+ free( description->connection );
+ free( description->bandwidth );
+ free( description->title );
+ free( description->author );
+ free( description->copyright );
+ free( description->keywords );
+ free( description->asm_rule_book );
+ free( description->abstract );
+ free( description->range );
free(description);
}
{
char *buf = malloc( strlen(answer) );
sscanf( answer, "%*s %s", buf );
- if( rtsp->p_private->server ) free( rtsp->p_private->server );
+ free( rtsp->p_private->server );
rtsp->p_private->server = buf;
}
if( !strncasecmp( answer, "Session:", 8 ) )
rtsp->pf_disconnect( rtsp->p_userdata );
}
- if( rtsp->p_private->path ) free( rtsp->p_private->path );
- if( rtsp->p_private->host ) free( rtsp->p_private->host );
- if( rtsp->p_private->mrl ) free( rtsp->p_private->mrl );
- if( rtsp->p_private->session ) free( rtsp->p_private->session );
- if( rtsp->p_private->user_agent ) free( rtsp->p_private->user_agent );
- if( rtsp->p_private->server ) free( rtsp->p_private->server );
+ free( rtsp->p_private->path );
+ free( rtsp->p_private->host );
+ free( rtsp->p_private->mrl );
+ free( rtsp->p_private->session );
+ free( rtsp->p_private->user_agent );
+ free( rtsp->p_private->server );
rtsp_free_answers( rtsp );
rtsp_unschedule_all( rtsp );
free( rtsp->p_private );
void rtsp_set_session( rtsp_client_t *rtsp, const char *id )
{
- if( rtsp->p_private->session ) free( rtsp->p_private->session );
+ free( rtsp->p_private->session );
rtsp->p_private->session = strdup(id);
}
{
if( !strncmp(*ptr, string, strlen(string)) ) break;
}
- if( *ptr ) free( *ptr );
+ free( *ptr );
ptr++;
do
{
* smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]] */
if( !psz_user ) psz_user = var_CreateGetString( p_access, "smb-user" );
- if( psz_user && !*psz_user ) { free( psz_user ); psz_user = 0; }
+ if( !*psz_user ) { free( psz_user ); psz_user = 0; }
if( !psz_pwd ) psz_pwd = var_CreateGetString( p_access, "smb-pwd" );
- if( psz_pwd && !*psz_pwd ) { free( psz_pwd ); psz_pwd = 0; }
+ if( !*psz_pwd ) { free( psz_pwd ); psz_pwd = 0; }
if(!psz_domain) psz_domain = var_CreateGetString( p_access, "smb-domain" );
- if( psz_domain && !*psz_domain ) { free( psz_domain ); psz_domain = 0; }
+ if( !*psz_domain ) { free( psz_domain ); psz_domain = 0; }
#ifdef WIN32
if( psz_user )
asprintf( &psz_uri, "smb://%s", psz_path );
#endif
- if( psz_user ) free( psz_user );
- if( psz_pwd ) free( psz_pwd );
- if( psz_domain ) free( psz_domain );
+ free( psz_user );
+ free( psz_pwd );
+ free( psz_domain );
#ifdef USE_CTX
if( !(p_smb = smbc_new_context()) )
p_sys->fd_audio = OpenAudioDev( p_demux, p_sys->psz_device );
if( p_sys->fd_audio >= 0 )
{
- if( p_sys->psz_adev ) free( p_sys->psz_adev );
+ free( p_sys->psz_adev );
p_sys->psz_adev = p_sys->psz_device;
p_sys->psz_device = NULL;
}
}
else
{
- if( p_sys->psz_vdev ) free( p_sys->psz_vdev );
+ free( p_sys->psz_vdev );
p_sys->psz_vdev = p_sys->psz_device;
p_sys->psz_device = NULL;
}
{
if( !p_sys->psz_vdev || !*p_sys->psz_vdev )
{
- if( p_sys->psz_vdev ) free( p_sys->psz_vdev );
+ free( p_sys->psz_vdev );
p_sys->psz_vdev = var_CreateGetString( p_demux, "v4l-vdev" );;
}
{
if( !p_sys->psz_adev || !*p_sys->psz_adev )
{
- if( p_sys->psz_adev ) free( p_sys->psz_adev );
+ free( p_sys->psz_adev );
p_sys->psz_adev = var_CreateGetString( p_demux, "v4l-adev" );;
}
demux_t *p_demux = (demux_t *)p_this;
demux_sys_t *p_sys = p_demux->p_sys;
- if( p_sys->psz_device ) free( p_sys->psz_device );
- if( p_sys->psz_vdev ) free( p_sys->psz_vdev );
- if( p_sys->psz_adev ) free( p_sys->psz_adev );
+ free( p_sys->psz_device );
+ free( p_sys->psz_vdev );
+ free( p_sys->psz_adev );
if( p_sys->fd_video >= 0 ) close( p_sys->fd_video );
if( p_sys->fd_audio >= 0 ) close( p_sys->fd_audio );
if( p_sys->p_block_audio ) block_Release( p_sys->p_block_audio );
{
p_sys->psz_device = strdup( psz_dup );
}
- if( psz_dup ) free( psz_dup );
+ free( psz_dup );
}
/*****************************************************************************
{
msg_Dbg( p_this, "'%s' is a video device", p_sys->psz_device );
/* Device was a video device */
- if( p_sys->psz_vdev ) free( p_sys->psz_vdev );
+ free( p_sys->psz_vdev );
p_sys->psz_vdev = p_sys->psz_device;
p_sys->psz_device = NULL;
p_sys->i_fd_video = OpenVideoDev( p_this, p_sys, b_demux );
{
if( !p_sys->psz_vdev || !*p_sys->psz_vdev )
{
- if( p_sys->psz_vdev ) free( p_sys->psz_vdev );
+ free( p_sys->psz_vdev );
p_sys->psz_vdev = var_CreateGetString( p_this, "v4l2-dev" );
}
i_len = strlen( psz_parser );
}
- if( p_sys->psz_requested_chroma ) free( p_sys->psz_requested_chroma );
+ free( p_sys->psz_requested_chroma );
p_sys->psz_requested_chroma = strndup( psz_parser, i_len );
psz_parser += i_len;
{
p_sys->psz_device = strdup( psz_dup );
}
- if( psz_dup ) free( psz_dup );
+ free( psz_dup );
}
/*****************************************************************************
*****************************************************************************/
void ioctl_Close( vlc_object_t * p_this, vcddev_t *p_vcddev )
{
- if( p_vcddev->psz_dev ) free( p_vcddev->psz_dev );
+ free( p_vcddev->psz_dev );
if( p_vcddev->i_vcdimage_handle != -1 )
{
if( *pp_sectors == NULL || p_fulltoc == NULL )
{
- if( *pp_sectors ) free( *pp_sectors );
- if( p_fulltoc ) free( p_fulltoc );
+ free( *pp_sectors );
+ free( p_fulltoc );
msg_Err( p_this, "out of memory" );
CloseHandle( hEvent );
return 0;
error:
if( cuefile ) fclose( cuefile );
- if( psz_cuefile ) free( psz_cuefile );
- if( psz_vcdfile ) free( psz_vcdfile );
+ free( psz_cuefile );
+ free( psz_vcdfile );
return i_ret;
}
else
return;
- if( p_vcddev->p_sectors )
- free( p_vcddev->p_sectors );
+ free( p_vcddev->p_sectors );
}
#if defined( __APPLE__ )
if( p_sys )
{
- if( p_sys->p_last) free( p_sys->p_last );
+ free( p_sys->p_last );
free( p_sys );
}
}