Commit 352188c2 authored by Rémi Duraffort's avatar Rémi Duraffort

video_filter_rss: use the return value and fix mutex leak (the mutex was never

used but it will be used soon).
parent bb7add17
...@@ -281,7 +281,11 @@ static int CreateFilter( vlc_object_t *p_this ) ...@@ -281,7 +281,11 @@ static int CreateFilter( vlc_object_t *p_this )
} }
/* Parse the urls */ /* Parse the urls */
ParseUrls( p_filter, psz_urls ); if( ParseUrls( p_filter, psz_urls ) )
{
free( psz_urls );
goto error;
}
free( psz_urls ); free( psz_urls );
if( FetchRSS( p_filter ) ) if( FetchRSS( p_filter ) )
...@@ -328,6 +332,7 @@ static void DestroyFilter( vlc_object_t *p_this ) ...@@ -328,6 +332,7 @@ static void DestroyFilter( vlc_object_t *p_this )
filter_t *p_filter = (filter_t *)p_this; filter_t *p_filter = (filter_t *)p_this;
filter_sys_t *p_sys = p_filter->p_sys; filter_sys_t *p_sys = p_filter->p_sys;
vlc_mutex_destroy( &p_sys->lock );
text_style_Delete( p_sys->p_style ); text_style_Delete( p_sys->p_style );
free( p_sys->psz_marquee ); free( p_sys->psz_marquee );
FreeRSS( p_filter ); FreeRSS( p_filter );
......
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