Skip to content

Commit

Permalink
X11: fix xf_video_init leak of XvListImageFormats
Browse files Browse the repository at this point in the history
  • Loading branch information
kiilerix committed Jul 1, 2011
1 parent 77232b4 commit 7039974
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion X11/xf_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ xf_video_init(xfInfo * xfi)
}
xfi->xv_pixfmts[i] = 0;
}
XFree(fo);
printf("\n");

return 0;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7039974

Please sign in to comment.