Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRDP/FreeRDP-old.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMads Kiilerich <mads@kiilerich.com>2011-07-01 15:57:15 +0400
committerMads Kiilerich <mads@kiilerich.com>2011-07-01 15:57:15 +0400
commit70399749e1b4370b6abdf9ae8615c17e074e550f (patch)
treeade16624f061902700335586d4dd66a6578895b8
parent77232b4adcbd8c13877ae94f63dec07a8f4147ba (diff)
X11: fix xf_video_init leak of XvListImageFormats
-rw-r--r--X11/xf_video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/X11/xf_video.c b/X11/xf_video.c
index 8e7dad0..938437e 100644
--- a/X11/xf_video.c
+++ b/X11/xf_video.c
@@ -120,6 +120,7 @@ xf_video_init(xfInfo * xfi)
}
xfi->xv_pixfmts[i] = 0;
}
+ XFree(fo);
printf("\n");
return 0;
@@ -193,7 +194,7 @@ xf_video_process_frame(xfInfo * xfi, RD_VIDEO_FRAME_EVENT * vevent)
shminfo.shmid = xfi->xv_shmid;
shminfo.shmaddr = image->data = xfi->xv_shmaddr;
shminfo.readOnly = False;
-
+
if (!XShmAttach(xfi->display, &shminfo))
{
XFree(image);