Commit 2e45e74f authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

subpicture: fix memory leaks

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 16ec1133
......@@ -88,6 +88,12 @@ void subpicture_Delete( subpicture_t *p_subpic )
if( p_subpic->updater.pf_destroy )
p_subpic->updater.pf_destroy( p_subpic );
if( p_subpic->p_private )
{
video_format_Clean( &p_subpic->p_private->src );
video_format_Clean( &p_subpic->p_private->dst );
}
free( p_subpic->p_private );
free( p_subpic );
}
......
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