Commit c617c669 authored by Lukasz Marek's avatar Lukasz Marek Committed by Stefano Sabatini

lavd/xv: free graphics context

Valgrind detects mem leak from XCreateGC.
Free it with XFreeGC.
Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki@gmail.com>
Signed-off-by: 's avatarStefano Sabatini <stefasab@gmail.com>
parent 8b2dd04a
......@@ -181,6 +181,7 @@ static int xv_write_trailer(AVFormatContext *s)
XShmDetach(xv->display, &xv->yuv_shminfo);
shmdt(xv->yuv_image->data);
XFree(xv->yuv_image);
XFreeGC(xv->display, xv->gc);
XCloseDisplay(xv->display);
return 0;
}
......
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