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

Cleanup in the error path

parent b3ff6f03
...@@ -136,6 +136,7 @@ static int OpenFilterEx( vlc_object_t *p_this, vlc_bool_t b_enable_croppadd ) ...@@ -136,6 +136,7 @@ static int OpenFilterEx( vlc_object_t *p_this, vlc_bool_t b_enable_croppadd )
if( CheckInit( p_filter ) != VLC_SUCCESS ) if( CheckInit( p_filter ) != VLC_SUCCESS )
{ {
if( p_sys->p_rsc ) img_resample_close( p_sys->p_rsc );
avpicture_free( &p_sys->tmp_pic ); avpicture_free( &p_sys->tmp_pic );
free( p_sys ); free( 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