summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavdevice/xv.c1
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;
}