diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2013-11-01 13:20:15 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-11-01 16:20:50 +0100 |
commit | c617c669e9fce59905915c3ba1053f535add6a06 (patch) | |
tree | 7d0fc722934c703a9c10c001eb1165407a146c42 /libavdevice/xv.c | |
parent | 8b2dd04afc779a2bdb8676c652154130e29438fb (diff) | |
download | ffmpeg-c617c669e9fce59905915c3ba1053f535add6a06.tar.gz |
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>
Diffstat (limited to 'libavdevice/xv.c')
-rw-r--r-- | libavdevice/xv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/xv.c b/libavdevice/xv.c index 65f2f72224..3b377f8bdb 100644 --- a/libavdevice/xv.c +++ b/libavdevice/xv.c @@ -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; } |