Commit fb6f0b89 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avi: fix leak

parent e51ec531
......@@ -689,6 +689,7 @@ static int Open( vlc_object_t * p_this )
* directly after BITMAPINFORHEADER in the BITMAPINFO structure */
if( tk->fmt.i_extra > 0 )
{
free( tk->fmt.video.p_palette );
tk->fmt.video.p_palette = calloc( 1, sizeof(video_palette_t) );
if( likely(tk->fmt.video.p_palette) )
{
......
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