]> git.sesse.net Git - vlc/commitdiff
XCB: memory leak
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 2 Sep 2009 16:19:26 +0000 (19:19 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 2 Sep 2009 16:19:26 +0000 (19:19 +0300)
modules/video_output/xcb/common.c

index e006247088d0244401a4016470d2c798b056e400..82119caf5442a55450363c7e6005b40134fe57f2 100644 (file)
@@ -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;