Commit 8a7ab1e7 authored by Jean-Paul Saman's avatar Jean-Paul Saman

codec/avcodec/vaapi_x11.c: fix double free

Do not free pic->p_sys twice. The function picture_Delete() already
does freeing of pic->p_sys.
parent 3f100fd0
...@@ -435,7 +435,6 @@ static void vlc_va_PictureRelease(picture_t *pic) ...@@ -435,7 +435,6 @@ static void vlc_va_PictureRelease(picture_t *pic)
if( --pic->i_refcount > 0 ) if( --pic->i_refcount > 0 )
return; return;
free(pic->p_sys);
picture_Delete(pic); picture_Delete(pic);
} }
......
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