summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-04-01 15:56:45 +0000
committerMichael Niedermayer <michaelni@gmx.at>2011-04-10 03:49:24 +0200
commitc55efca05bc0b58b0845f83e73670f76030b82a5 (patch)
treea2c95e8e4add30d2bd8fb54a8a9e1877323c5d9f /libavdevice
parent05c062e9da370c60f48e433308cccbf7e7aea7fe (diff)
x11: fix memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/x11grab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c
index 6a674ee6f9..64169ceeb0 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(&param);
if(!dpy) {
av_log(s1, AV_LOG_ERROR, "Could not open X display.\n");
return AVERROR(EIO);