Commit d5d5ebfa authored by Gildas Bazin's avatar Gildas Bazin

* src/input/input.c: fixed memory leak.

parent 7003cd39
......@@ -932,6 +932,7 @@ static int Init( input_thread_t * p_input )
{
TAB_APPEND( p_input->i_slave, p_input->slave, sub );
}
else free( sub );
}
free( subs[i] );
}
......@@ -967,6 +968,7 @@ static int Init( input_thread_t * p_input )
{
TAB_APPEND( p_input->i_slave, p_input->slave, slave );
}
else free( slave );
psz = psz_delim;
}
}
......@@ -1704,6 +1706,7 @@ static vlc_bool_t Control( input_thread_t *p_input, int i_type,
}
else
{
free( slave );
msg_Warn( p_input, "failed to add %s as slave",
val.psz_string );
}
......@@ -2522,6 +2525,7 @@ vlc_bool_t input_AddSubtitles( input_thread_t *p_input, char *psz_subtitle,
var_Change( p_input, "spu-es", VLC_VAR_FREELIST, &list, NULL );
}
}
else free( sub );
return VLC_TRUE;
}
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