Commit ab9eb7bf authored by Rafaël Carré's avatar Rafaël Carré

Fix use after free : CID 134

parent 8371eceb
...@@ -194,9 +194,8 @@ static void DestroyFilter( vlc_object_t *p_this ) ...@@ -194,9 +194,8 @@ 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;
if( p_sys->p_style ) free( p_sys->p_style ); free( p_sys->p_style );
if( p_sys->psz_marquee ) free( p_sys->psz_marquee ); free( p_sys->psz_marquee );
free( p_sys );
/* Delete the marquee variables */ /* Delete the marquee variables */
var_DelCallback( p_filter->p_libvlc, "marq-x", MarqueeCallback, p_sys ); var_DelCallback( p_filter->p_libvlc, "marq-x", MarqueeCallback, p_sys );
...@@ -216,6 +215,8 @@ static void DestroyFilter( vlc_object_t *p_this ) ...@@ -216,6 +215,8 @@ static void DestroyFilter( vlc_object_t *p_this )
var_Destroy( p_filter->p_libvlc , "marq-color"); var_Destroy( p_filter->p_libvlc , "marq-color");
var_Destroy( p_filter->p_libvlc , "marq-opacity"); var_Destroy( p_filter->p_libvlc , "marq-opacity");
var_Destroy( p_filter->p_libvlc , "marq-size"); var_Destroy( p_filter->p_libvlc , "marq-size");
free( p_sys );
} }
/**************************************************************************** /****************************************************************************
......
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