Commit 74657679 authored by Laurent Aimar's avatar Laurent Aimar

Fixed invalid free on picture_NewFromFormat failure in subpicture_region_New.

parent 39cbcafd
......@@ -818,7 +818,7 @@ subpicture_region_t *subpicture_region_New( const video_format_t *p_fmt )
p_region->p_picture = picture_NewFromFormat( p_fmt );
if( !p_region->p_picture )
{
free( p_fmt->p_palette );
free( p_region->fmt.p_palette );
free( p_region );
return NULL;
}
......
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