mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 00:51:37 +00:00
lavd/xv: free graphics context
Valgrind detects mem leak from XCreateGC. Free it with XFreeGC. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
This commit is contained in:
parent
8b2dd04afc
commit
c617c669e9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user