Commit cd579fd8 authored by Rémi Duraffort's avatar Rémi Duraffort

logo: fix memleak.

parent a95457ee
...@@ -629,13 +629,14 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list, ...@@ -629,13 +629,14 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list,
const char *psz_filename ) const char *psz_filename )
{ {
char *psz_list; /* the list: <logo>[,[<delay>[,[<alpha>]]]][;...] */ char *psz_list; /* the list: <logo>[,[<delay>[,[<alpha>]]]][;...] */
char *psz_original;
unsigned int i; unsigned int i;
logo_t *p_logo; /* the parsing's result */ logo_t *p_logo; /* the parsing's result */
p_logo_list->i_counter = 0; p_logo_list->i_counter = 0;
p_logo_list->i_next_pic = 0; p_logo_list->i_next_pic = 0;
psz_list = strdup( psz_filename ); psz_original = psz_list = strdup( psz_filename );
if( !psz_list ) if( !psz_list )
abort(); abort();
...@@ -699,6 +700,8 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list, ...@@ -699,6 +700,8 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list,
/* initialize so that on the first update it will wrap back to 0 */ /* initialize so that on the first update it will wrap back to 0 */
p_logo_list->i_counter = p_logo_list->i_count - 1; p_logo_list->i_counter = p_logo_list->i_count - 1;
free( psz_original );
} }
/** /**
......
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