Commit 24e7b2dd authored by Laurent Aimar's avatar Laurent Aimar

Fixed a memory leak in AspectCallback.

parent 5a0ac45f
......@@ -1126,8 +1126,12 @@ static int AspectCallback( vlc_object_t *p_this, char const *psz_cmd,
i_aspect_num, i_aspect_den,
p_vout->fmt_in.i_sar_num, p_vout->fmt_in.i_sar_den );
var_Get( p_vout, "crop", &val );
return CropCallback( p_this, "crop", val, val, 0 );
if( var_Get( p_vout, "crop", &val ) )
return VLC_EGENERIC;
int i_ret = CropCallback( p_this, "crop", val, val, 0 );
free( val.psz_string );
return i_ret;
}
static int OnTopCallback( vlc_object_t *p_this, char const *psz_cmd,
......
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