[vlc-commits] XCB/XVideo: fix memory leak
Rémi Denis-Courmont
git at videolan.org
Fri Dec 7 21:13:03 CET 2012
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec 7 22:11:53 2012 +0200| [92d8d6ef3ead1414b3e7b0b8b809fc62a5a84aee] | committer: Rémi Denis-Courmont
XCB/XVideo: fix memory leak
(cherry picked from commit dd1ff43f888d63f9042a9a94ec6050b0523c6aa8)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=92d8d6ef3ead1414b3e7b0b8b809fc62a5a84aee
---
modules/video_output/xcb/xvideo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index 7687e1e..e4a9c49 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -544,6 +544,7 @@ static int Open (vlc_object_t *obj)
xcb_intern_atom (conn, 1, 21, "XV_AUTOPAINT_COLORKEY"), NULL);
if (r != NULL && r->atom != 0)
xcb_xv_set_port_attribute(conn, p_sys->port, r->atom, 1);
+ free(r);
}
/* Create cursor */
More information about the vlc-commits
mailing list