From c9064d52316709413e48578d6e5e6ca334b0d1e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 23 May 2009 16:49:58 +0300 Subject: [PATCH] XCB: memory leak --- modules/video_output/xcb/xvideo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c index 0e99035be8..5b32ad1419 100644 --- a/modules/video_output/xcb/xvideo.c +++ b/modules/video_output/xcb/xvideo.c @@ -159,12 +159,16 @@ static int Open (vlc_object_t *obj) /* Connect to X */ p_sys->conn = Connect (obj); if (p_sys->conn == NULL) + { + free (p_sys); return VLC_EGENERIC; + } if (!CheckXVideo (vout, p_sys->conn)) { msg_Warn (vout, "Please enable XVideo 2.2 for faster video display"); xcb_disconnect (p_sys->conn); + free (p_sys); return VLC_EGENERIC; } @@ -173,6 +177,7 @@ static int Open (vlc_object_t *obj) if (p_sys->embed == NULL) { xcb_disconnect (p_sys->conn); + free (p_sys); return VLC_EGENERIC; } -- 2.39.5