Commit fa6bab98 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* backport [18958]

Fixed subtitle/osd memory leaks (subpicture_region_t->psz_text was not freed).
parent 175303c4
......@@ -325,6 +325,10 @@ void __spu_DestroyRegion( vlc_object_t *p_this, subpicture_region_t *p_region )
p_region->picture.pf_release( &p_region->picture );
if( p_region->fmt.p_palette ) free( p_region->fmt.p_palette );
if( p_region->p_cache ) __spu_DestroyRegion( p_this, p_region->p_cache );
if( p_region->psz_text )
free( p_region->psz_text );
//free( p_region->p_style ); FIXME --fenrir plugin does not allocate the memory for it. I think it might lead to segfault, video renderer can live longer than the decoder
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