Commit e378b432 authored by Antoine Cellerier's avatar Antoine Cellerier

Fix "Seg fault when changing mosaic 'offsets' option on the fly." Patch by hovis, #1182

parent 128338ce
......@@ -889,10 +889,12 @@ static int MosaicCallback( vlc_object_t *p_this, char const *psz_var,
if( p_sys->i_offsets_length != 0 )
{
p_sys->i_offsets_length = 0;
free( p_sys->pi_x_offsets );
free( p_sys->pi_y_offsets );
p_sys->pi_x_offsets = NULL;
p_sys->pi_y_offsets = NULL;
}
p_sys->i_offsets_length = 0;
mosaic_ParseSetOffsets( p_this, p_sys, newval.psz_string );
......
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