Commit dd126182 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Backport of [25090]: Cleanup in the error path

parent 9a615da1
......@@ -131,6 +131,7 @@ static int OpenFilterEx( vlc_object_t *p_this, vlc_bool_t b_enable_croppadd )
if( CheckInit( p_filter ) != VLC_SUCCESS )
{
if( p_sys->p_rsc ) img_resample_close( p_sys->p_rsc );
avpicture_free( &p_sys->tmp_pic );
free( p_sys );
return VLC_EGENERIC;
......@@ -174,7 +175,6 @@ void E_(CloseFilter)( vlc_object_t *p_this )
filter_sys_t *p_sys = p_filter->p_sys;
if( p_sys->p_rsc ) img_resample_close( p_sys->p_rsc );
avpicture_free( &p_sys->tmp_pic );
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