[vlc-commits] XCB/XVideo: fix memory leak

Rémi Denis-Courmont git at videolan.org
Fri Dec 7 21:12:40 CET 2012


vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec  7 22:11:53 2012 +0200| [2232acd7dbf19b92764964b1f6b001c61afcec8a] | committer: Rémi Denis-Courmont

XCB/XVideo: fix memory leak

(cherry picked from commit dd1ff43f888d63f9042a9a94ec6050b0523c6aa8)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=2232acd7dbf19b92764964b1f6b001c61afcec8a
---

 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 130ac8c..3d99da8 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -566,6 +566,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