[vlc-devel] commit: XCB: memory leak ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Sep 2 18:24:35 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Sep  2 19:19:26 2009 +0300| [6aa4cfa23ed77ff0ec897d041ca3ce46e0d5959e] | committer: Rémi Denis-Courmont 

XCB: memory leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6aa4cfa23ed77ff0ec897d041ca3ce46e0d5959e
---

 modules/video_output/xcb/common.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/xcb/common.c b/modules/video_output/xcb/common.c
index e006247..82119ca 100644
--- a/modules/video_output/xcb/common.c
+++ b/modules/video_output/xcb/common.c
@@ -50,6 +50,7 @@ int CheckError (vout_display_t *vd, xcb_connection_t *conn,
     if (err)
     {
         msg_Err (vd, "%s: X11 error %d", str, err->error_code);
+        free (err);
         return VLC_EGENERIC;
     }
     return VLC_SUCCESS;




More information about the vlc-devel mailing list