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

Fix potential memleak.

parent 03967e7f
...@@ -331,6 +331,8 @@ static int Create( vlc_object_t *p_this ) ...@@ -331,6 +331,8 @@ static int Create( vlc_object_t *p_this )
if( !p_logo_list->psz_filename || !*p_logo_list->psz_filename ) if( !p_logo_list->psz_filename || !*p_logo_list->psz_filename )
{ {
msg_Err( p_vout, "logo file not specified" ); msg_Err( p_vout, "logo file not specified" );
free( p_logo_list->psz_filename );
free( p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
...@@ -266,6 +266,7 @@ static int CreateFilter( vlc_object_t *p_this ) ...@@ -266,6 +266,7 @@ static int CreateFilter( vlc_object_t *p_this )
{ {
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
vlc_mutex_destroy( &p_sys->lock ); vlc_mutex_destroy( &p_sys->lock );
free( p_sys->psz_urls );
free( p_sys ); free( p_sys );
return VLC_ENOMEM; return VLC_ENOMEM;
} }
...@@ -277,6 +278,7 @@ static int CreateFilter( vlc_object_t *p_this ) ...@@ -277,6 +278,7 @@ static int CreateFilter( vlc_object_t *p_this )
free( p_sys->psz_marquee ); free( p_sys->psz_marquee );
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
vlc_mutex_destroy( &p_sys->lock ); vlc_mutex_destroy( &p_sys->lock );
free( p_sys->psz_urls );
free( p_sys ); free( p_sys );
return VLC_ENOMEM; return VLC_ENOMEM;
} }
...@@ -301,6 +303,7 @@ static int CreateFilter( vlc_object_t *p_this ) ...@@ -301,6 +303,7 @@ static int CreateFilter( vlc_object_t *p_this )
free( p_sys->psz_marquee ); free( p_sys->psz_marquee );
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
vlc_mutex_destroy( &p_sys->lock ); vlc_mutex_destroy( &p_sys->lock );
free( p_sys->psz_urls );
free( p_sys ); free( p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -312,6 +315,7 @@ static int CreateFilter( vlc_object_t *p_this ) ...@@ -312,6 +315,7 @@ static int CreateFilter( vlc_object_t *p_this )
free( p_sys->psz_marquee ); free( p_sys->psz_marquee );
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
vlc_mutex_destroy( &p_sys->lock ); vlc_mutex_destroy( &p_sys->lock );
free( p_sys->psz_urls );
free( p_sys ); free( p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -324,6 +328,7 @@ static int CreateFilter( vlc_object_t *p_this ) ...@@ -324,6 +328,7 @@ static int CreateFilter( vlc_object_t *p_this )
FreeRSS( p_filter ); FreeRSS( p_filter );
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
vlc_mutex_destroy( &p_sys->lock ); vlc_mutex_destroy( &p_sys->lock );
free( p_sys->psz_urls );
free( p_sys ); free( p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
...@@ -174,6 +174,7 @@ static int Create( vlc_object_t *p_this ) ...@@ -174,6 +174,7 @@ static int Create( vlc_object_t *p_this )
{ {
msg_Err( p_this, "unable to create image handler") ; msg_Err( p_this, "unable to create image handler") ;
FREENULL( p_vout->p_sys->psz_prefix ); FREENULL( p_vout->p_sys->psz_prefix );
FREENULL( p_vout->p_sys->psz_format );
FREENULL( p_vout->p_sys ); FREENULL( p_vout->p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
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