Commit 838e1e07 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

subpicture: Fix double free

parent 4c5728df
......@@ -246,9 +246,8 @@ void subpicture_region_Delete( subpicture_region_t *p_region )
if( p_region->p_picture )
picture_Release( p_region->p_picture );
// Don't release text_segment's, they are owned by the subpicture itself
free( p_region->fmt.p_palette );
text_segment_ChainDelete( p_region->p_text );
free( p_region );
}
......
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