Browse Source

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>
tags/n2.2-rc1
Lukasz Marek Stefano Sabatini 12 years ago
parent
commit
c617c669e9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavdevice/xv.c

+ 1
- 0
libavdevice/xv.c View File

@@ -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…
Cancel
Save