[FFmpeg-cvslog] x11: fix memleak
Carl Eugen Hoyos
git at videolan.org
Sun Apr 10 04:01:13 CEST 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Apr 1 15:56:45 2011 +0000| [c55efca05bc0b58b0845f83e73670f76030b82a5] | committer: Michael Niedermayer
x11: fix memleak
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c55efca05bc0b58b0845f83e73670f76030b82a5
---
libavdevice/x11grab.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c
index 6a674ee..64169ce 100644
--- a/libavdevice/x11grab.c
+++ b/libavdevice/x11grab.c
@@ -105,6 +105,7 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
av_log(s1, AV_LOG_INFO, "device: %s -> display: %s x: %d y: %d width: %d height: %d\n", s1->filename, param, x_off, y_off, ap->width, ap->height);
dpy = XOpenDisplay(param);
+ av_freep(¶m);
if(!dpy) {
av_log(s1, AV_LOG_ERROR, "Could not open X display.\n");
return AVERROR(EIO);
More information about the ffmpeg-cvslog
mailing list